All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
introspection.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_USD_USD_UTILS_INTROSPECTION_H
8#define PXR_USD_USD_UTILS_INTROSPECTION_H
9
15
16#include "pxr/pxr.h"
17#include "pxr/usd/usdUtils/api.h"
19#include "pxr/usd/sdf/path.h"
20
21#include "pxr/usd/usd/stage.h"
22
25
26PXR_NAMESPACE_OPEN_SCOPE
27
28
29SDF_DECLARE_HANDLES(SdfLayer);
30
31#define USDUTILS_USDSTAGE_STATS \
32 (approxMemoryInMb) \
33 (totalPrimCount) \
34 (modelCount) \
35 (instancedModelCount) \
36 (assetCount) \
37 (prototypeCount) \
38 (totalInstanceCount) \
39 (usedLayerCount) \
40 (primary) \
41 (prototypes) \
42 (primCounts) \
43 /*(totalPrimCount)*/ \
44 (activePrimCount) \
45 (inactivePrimCount) \
46 (pureOverCount) \
47 (instanceCount) \
48 (primCountsByType) \
49 (untyped)
50
51TF_DECLARE_PUBLIC_TOKENS(UsdUtilsUsdStageStatsKeys,
52 USDUTILS_API, USDUTILS_USDSTAGE_STATS);
53
93USDUTILS_API
94UsdStageRefPtr UsdUtilsComputeUsdStageStats(const std::string &rootLayerPath,
95 VtDictionary *stats);
96
103USDUTILS_API
104size_t UsdUtilsComputeUsdStageStats(const UsdStageWeakPtr &stage,
105 VtDictionary *stats);
106
107
108PXR_NAMESPACE_CLOSE_SCOPE
109
110#endif /* PXR_USD_USD_UTILS_INTROSPECTION_H */
A scene description container that can combine with other such containers to form simple component as...
Definition: layer.h:84
A map with string keys and VtValue values.
Definition: dictionary.h:43
Environment setting variable.
USDUTILS_API UsdStageRefPtr UsdUtilsComputeUsdStageStats(const std::string &rootLayerPath, VtDictionary *stats)
Opens the given layer on a USD stage and collects various stats.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81