cpp_tracer.rar - Lifitime tracer.
*****************************************************
Example:
#include <timings.h>
void foo()
{
TRACE_LIFETIME
usleep(100000)
}
void main()
{
foo()
}
***************************************************
See lifetimes.log:
FUNC: void foo(), AV TTL: 00000xxxxx us (main.cpp, 000xxx)
TTL: 00000xxxxx us (THREAD ID: 0000xxxx)
******************************************************
Explanation of newly created lifetimes.log:
FUNC - function, whose lifetime we measured
AV TTL - mean (average) spent time of all functions calls
TTL - time spent on each function call
THREAD ID - thread that called a function.
*****************************************************
Description:
- was written for QT project
- multithreaded support (Loki::Singleton has multithreaded sync support)
****************************************************
Dependencies:
- QT
- Loki (A. Alexandrescu)
,2009-12-22 00:31:26,下载6次