Go to the source code of this file.
Defines | |
| #define | PROFILE_FUNC() |
| Profile the caller function. | |
| #define | PROFILE_CODE(code) |
| Profile and execute the specified code. | |
| #define | PROFILE_BLOCK(name) |
| Profile the caller block. | |
| #define | PROFILE_BEGIN() |
| Profile until PROFILE_END. | |
| #define | PROFILE_() |
| short | |
| #define PROFILE_ | ( | ) |
short
{Specialisation offered by the function A}
| {details | of 1st parameters used} | |
| {details | of 2nd parameters used} | |
| {etc...} |
{working example}
\b Output:
{output from working example}
| #define PROFILE_BEGIN | ( | ) |
Profile until PROFILE_END.
This will create and begin a profile with the specified name until PROFILE_END is called. Call PROFILE_END to end profile.
| Name | of profile to be created. Name is an identifier (not a string) and uses C++ naming rules |
{working example}
\b Output:
{output from working example}
| #define PROFILE_BLOCK | ( | name | ) |
Profile the caller block.
This will create and begin a profile with the specified name until end of block. Call this in the beginning of your code block (function, for-loop, if-statment, etc).
| Name | of profile to be created. Name is an identifier (not a string) and uses C++ naming rules |
{working example}
\b Output:
{output from working example}
| #define PROFILE_CODE | ( | code | ) |
Profile and execute the specified code.
This will create and begin a profile, execute code, and end profile. PROFILE_CODE is typically used when you want to profile a function call without touching the function source code or profiling every call.
| Code | to be executed and profiled |
{working example}
\b Output:
{output from working example}
| #define PROFILE_FUNC | ( | ) |
Profile the caller function.
This will create and begin a profile with the caller function name until end of block. Call this in the beginning of your function.
{working example}
\b Output:
{output from working example}
Copyright © 2007-2008 by Aidin Abedi