Skip to content

Commit 74c4c4c

Browse files
blevinpixar-oss
authored andcommitted
[hdPrman] Add a few more malloc tags
(Internal change: 2420103)
1 parent 1c4e0c0 commit 74c4c4c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

third_party/renderman/plugin/hdPrman/framebuffer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "hdPrman/idMap.h"
1010
#include "hdPrman/rixStrings.h"
1111
#include "pxr/imaging/hd/tokens.h"
12+
#include "pxr/imaging/hf/perfLog.h"
1213
#include "pxr/base/tf/diagnostic.h"
1314
#include "pxr/base/tf/staticData.h"
1415
#include "pxr/base/tf/tf.h"
@@ -380,6 +381,8 @@ HdPrmanFramebuffer::Resize(int width, int height,
380381
int cropXMin, int cropYMin,
381382
int cropWidth, int cropHeight)
382383
{
384+
HF_MALLOC_TAG_FUNCTION();
385+
383386
if (w != width || h != height ||
384387
cropOrigin[0] != cropXMin || cropOrigin[1] != cropYMin ||
385388
cropRes[0] != cropWidth || cropRes[1] != cropHeight) {

third_party/renderman/plugin/hdPrman/instancer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,6 +1974,7 @@ HdPrmanInstancer::_ResizeProtoMap(
19741974
const size_t newSize)
19751975
{
19761976
HD_TRACE_FUNCTION();
1977+
HF_MALLOC_TAG_FUNCTION();
19771978
_ProtoInstMap& protoInstMap = _protoMap.get(prototypePrimPath).map;
19781979
for (riley::GeometryPrototypeId protoId : rileyPrototypeIds) {
19791980
_InstanceIdVec& instIdVec = protoInstMap[protoId];

0 commit comments

Comments
 (0)