HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
systemDiagnostics.h
Go to the documentation of this file.
1 //
2 // Copyright 2025 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_EXEC_EXEC_SYSTEM_DIAGNOSTICS_H
8 #define PXR_EXEC_EXEC_SYSTEM_DIAGNOSTICS_H
9 
10 #include "pxr/pxr.h"
11 
12 #include "pxr/exec/exec/api.h"
13 
14 #include "pxr/exec/exec/system.h"
15 
17 
18 class VdfGrapherOptions;
19 
20 /// Utility class with various diagnostic functions for ExecSystem.
22 {
23 public:
24  EXEC_API
25  explicit Diagnostics(ExecSystem *system);
26 
27  /// Invalidates all of the internal state of the exec system, resetting it
28  /// to a state equivalent to when it was first constructed.
29  ///
30  EXEC_API
31  void InvalidateAll();
32 
33  /// Produces a dot graph of the currently compiled exec network and writes
34  /// its contents to \p filename.
35  ///
36  EXEC_API
37  void GraphNetwork(const char *filename) const;
38 
39  /// Produces a dot graph of the currently compiled exec network according to
40  /// the provided \p grapherOptions and writes its contents to \p filename.
41  ///
42  EXEC_API
43  void GraphNetwork(
44  const char *filename,
45  const VdfGrapherOptions &grapherOptions) const;
46 
47 private:
48  ExecSystem *const _system;
49 };
50 
52 
53 #endif
GT_API const UT_StringHolder filename
EXEC_API void GraphNetwork(const char *filename) const
EXEC_API void InvalidateAll()
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
Utility class with various diagnostic functions for ExecSystem.
EXEC_API Diagnostics(ExecSystem *system)
#define EXEC_API
Definition: api.h:25
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74