Render statistics querying and operation.
More...
|
| #define | AiProfileBlock(...) AiProfileBlockRAII Ai_profile_block(__VA_ARGS__) |
| | Macro to measure total time spent in a code block. More...
|
| |
Render statistics querying and operation.
◆ AiProfileBlock
| #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:
{
while (some_expression)
{
}
}
void bar()
{
}
#define AiProfileBlock(...)
Macro to measure total time spent in a code block.
Definition: ai_stats.h:71
This represents a node in Arnold.
◆ AtStatsMode
Output mode for structured statistics.
| Enumerator |
|---|
| AI_STATS_MODE_OVERWRITE | Overwrite the file if it exists
|
| AI_STATS_MODE_APPEND | Append data to existing statistics file.
|
◆ AiStatsGetMode()
Get the mode for outputting structured statistics.
- Returns
- the file mode, either overwrite or append to an existing file
◆ AiStatsSetMode()
| AI_API AI_DEPRECATED void AiStatsSetMode |
( |
AtStatsMode |
mode | ) |
|
Set the file mode for outputting structured statistics.
The default is to append to the file.
- Parameters
-
| mode | The file mode, either overwrite or append to an existing file |
◆ AiStatsGetFileName()
| AI_API const char * AiStatsGetFileName |
( |
| ) |
|
Get the filename of the structured stats output.
- Returns
- the filename of the stats output, will be NULL for disabled stats output
◆ AiStatsSetFileName()
| AI_API void AiStatsSetFileName |
( |
const char * |
filename | ) |
|
Set the output file that will contain structured stats from this session's renders.
- Parameters
-
| filename | The path of the JSON file where the statistics will be written. If empty or NULL it will disable stats output. |
◆ AiProfileSetFileName()
| 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.
◆ AiProfileGetFileName()
| AI_API AtString AiProfileGetFileName |
( |
| ) |
|
◆ AiReportSetFileName()
| AI_API void AiReportSetFileName |
( |
const char * |
filename | ) |
|
Set the report file that will contain render report HTML page.
- Parameters
-
| filename | The path of the HTML file where the statistics will be written. If empty or NULL it will disable report output. |
◆ AiReportGetFileName()
Get the filename of the render report output.
- Returns
- the filename of the render report output, will be an empty string for disabled stats output.