Skip to content

Commit

Permalink
Add malloc tag to plugin loading to make it easier to find memory reg…
Browse files Browse the repository at this point in the history
…ressions due to dependency changes.

(Internal change: 1817577)
  • Loading branch information
i-jones authored and pixar-oss committed Jan 11, 2018
1 parent c9d58a8 commit 21276ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pxr/base/lib/plug/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "pxr/base/tf/hash.h"
#include "pxr/base/tf/hashmap.h"
#include "pxr/base/tf/hashset.h"
#include "pxr/base/tf/mallocTag.h"
#include "pxr/base/tf/pathUtils.h"
#include "pxr/base/tf/pyLock.h"
#include "pxr/base/tf/scopeDescription.h"
Expand Down Expand Up @@ -253,6 +254,9 @@ PlugPlugin::GetDependencies()
bool
PlugPlugin::_Load()
{
TfAutoMallocTag2 tag("PlugPlugin::_Load",
TfStringPrintf("Load %s", _name.c_str()));

TRACE_FUNCTION();
TF_DESCRIBE_SCOPE("Loading plugin '%s'", TfGetBaseName(_name).c_str());
TF_DEBUG(PLUG_LOAD).Msg("Loading plugin '%s'.\n", _name.c_str());
Expand Down

0 comments on commit 21276ef

Please sign in to comment.