HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
perfLog.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_IMAGING_HF_PERF_LOG_H
8 #define PXR_IMAGING_HF_PERF_LOG_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/base/tf/mallocTag.h"
13 
15 
16 
17 ///
18 /// Creates an auto-mallocTag with the function, including template params.
19 ///
20 #define HF_MALLOC_TAG_FUNCTION() \
21  TfAutoMallocTag2 tagFunc(TF_PP_STRINGIZE(MFB_PACKAGE_NAME), \
22  __ARCH_PRETTY_FUNCTION__);
23 
24 ///
25 /// Creates an auto-mallocTag with the given named tag.
26 ///
27 #define HF_MALLOC_TAG(x) \
28  TfAutoMallocTag2 tag2(TF_PP_STRINGIZE(MFB_PACKAGE_NAME), x);
29 
30 ///
31 /// Overrides operator new/delete and injects malloc tags.
32 ///
33 #define HF_MALLOC_TAG_NEW(x) \
34  TF_MALLOC_TAG_NEW(TF_PP_STRINGIZE(MFB_PACKAGE_NAME), x);
35 
36 
37 #define HF_TRACE_FUNCTION_SCOPE(tag) \
38  TRACE_FUNCTION_SCOPE(tag)
39 
41 
42 #endif // PXR_IMAGING_HF_PERF_LOG_H
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74