44#define AiProfileBlock(...)
71#define AiProfileBlock(...) AiProfileBlockRAII Ai_profile_block(__VA_ARGS__)
100AI_API
void AiProfileUpdate(uint64_t start_counter, uint64_t end_counter,
101 const char* name,
const AtNode* node);
117ARNOLD_FORCEINLINE
void AiProfileEnd(uint64_t start_counter,
const char* name,
const AtNode* node=NULL)
120 if (Ai_unlikely(start_counter != end_counter))
125struct AiProfileBlockRAII
127 AiProfileBlockRAII(
const char* name,
const AtNode* node=NULL) :
130 AiProfileBlockRAII(
const AtNode* node) :
133 ~AiProfileBlockRAII()
135 AiProfileEnd(start_counter, name, node);
139 const uint64_t start_counter;
140 const char*
const name;
DLL export prefix for API functions (necessary for multi-platform development)
API for managing rendering sessions.
AtString class for fast comparisons.
Global entry point to the scene graph elements (options, camera, lights, etc)
Arnold String allows for fast string comparisons.
Definition: ai_string.h:54
AI_API AI_FORCEINLINE uint64_t AiProfileCounter()
Get profile counter.
Definition: ai_stats.cpp:56
AI_API void AiProfileUpdate(uint64_t start_counter, uint64_t end_counter, const char *name, const AtNode *node)
Finalize profile entry.
Definition: ai_stats.cpp:61
AI_API void AiProfileSetFileName(const char *filename)
JSON file to which profiling traces should be written to.
Definition: ai_stats.cpp:67
AI_API const char * AiStatsGetFileName()
Get the filename of the structured stats output.
Definition: ai_stats.cpp:51
AtStatsMode
Output mode for structured statistics.
Definition: ai_stats.h:32
AI_API void AiReportSetFileName(const char *filename)
Set the report file that will contain render report HTML page.
Definition: ai_stats.cpp:83
AI_API AI_DEPRECATED void AiStatsSetMode(AtStatsMode mode)
Set the file mode for outputting structured statistics.
Definition: ai_stats.cpp:18
AI_API AtString AiProfileGetFileName()
Get the JSON filename to which profiling traces will be written to.
Definition: ai_stats.cpp:72
AI_API void AiStatsSetFileName(const char *filename)
Set the output file that will contain structured stats from this session's renders.
Definition: ai_stats.cpp:28
AI_API AtString AiReportGetFileName()
Get the filename of the render report output.
Definition: ai_stats.cpp:93
AI_API AI_DEPRECATED AtStatsMode AiStatsGetMode()
Get the mode for outputting structured statistics.
Definition: ai_stats.cpp:41
@ AI_STATS_MODE_OVERWRITE
Overwrite the file if it exists
Definition: ai_stats.h:33
@ AI_STATS_MODE_APPEND
Append data to existing statistics file.
Definition: ai_stats.h:34
This represents a node in Arnold.