Render statistics querying and operation. More...
Macros | |
#define | AiProfileBlock(...) AiProfileBlockRAII Ai_profile_block(__VA_ARGS__) |
Macro to measure total time spent in a code block. More... | |
Enumerations | |
enum | AtStatsMode { AI_STATS_MODE_OVERWRITE , AI_STATS_MODE_APPEND } |
Output mode for structured statistics. More... | |
Functions | |
AI_API AtStatsMode | AiStatsGetMode () |
Get the mode for outputting structured statistics. More... | |
AI_API const char * | AiStatsGetFileName () |
Get the filename of the structured stats output. More... | |
AI_API void | AiStatsSetMode (AtStatsMode mode) |
Set the file mode for outputting structured statistics. More... | |
AI_API void | AiStatsSetFileName (const char *filename) |
Set the output file that will contain structured stats from this session's renders. More... | |
AI_API void | AiProfileSetFileName (const char *filename) |
JSON file to which profiling traces should be written to. More... | |
AI_API AtString | AiProfileGetFileName () |
Get the JSON filename to which profiling traces will be written to. More... | |
AiProfileBlockRAII::AiProfileBlockRAII (const char *name, const AtNode *node=NULL) | |
AiProfileBlockRAII::AiProfileBlockRAII (const AtNode *node) | |
Render statistics querying and operation.
#define AiProfileBlock | ( | ... | ) | AiProfileBlockRAII Ai_profile_block(__VA_ARGS__) |
Macro to measure total time spent in a code block.
It can be given either a descriptive string literal, an AtNode that should be associated with this measurement, or both.
Example usages:
enum AtStatsMode |
AI_API AtStatsMode AiStatsGetMode | ( | ) |
Get the mode for outputting structured statistics.
AI_API const char * AiStatsGetFileName | ( | ) |
Get the filename of the structured stats output.
AI_API void AiStatsSetMode | ( | AtStatsMode | mode | ) |
Set the file mode for outputting structured statistics.
The default is to append to the file.
mode | The file mode, either overwrite or append to an existing file |
AI_API void AiStatsSetFileName | ( | const char * | filename | ) |
Set the output file that will contain structured stats from this session's renders.
filename | The path of the JSON file where the statistics will be written. If empty or NULL it will disable stats output. |
AI_API void AiProfileSetFileName | ( | const char * | filename | ) |
JSON file to which profiling traces should be written to.
This is written in the Trace Event format which is viewable in Google Chrome at chrome://tracing/ . Setting to NULL will disable output.
AI_API AtString AiProfileGetFileName | ( | ) |
Get the JSON filename to which profiling traces will be written to.