All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
perfLog.h
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"
12#include "pxr/base/tf/preprocessorUtilsLite.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
16
20#define HF_MALLOC_TAG_FUNCTION() \
21 TfAutoMallocTag2 tagFunc(TF_PP_STRINGIZE(MFB_PACKAGE_NAME), \
22 __ARCH_PRETTY_FUNCTION__);
23
27#define HF_MALLOC_TAG(x) \
28 TfAutoMallocTag2 tag2(TF_PP_STRINGIZE(MFB_PACKAGE_NAME), x);
29
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
40PXR_NAMESPACE_CLOSE_SCOPE
41
42#endif // PXR_IMAGING_HF_PERF_LOG_H