kaizen is a cross platform C toolkit to implement runtime profiling for
computer and video games. kaizen_frame_time_
functions encapsulate
high precision timer or counter of the target platform. Times to measure are
typically very small, below a second, to measure runtimes of functions and
computations during a cycle of the game main loop which normally run with
30 - 60 Hz.
kaizen focuses on support for profiling of parallelized code bases.
All functions and types use the kaizen_
prefix, while preprocessor symbols use
KAIZEN_
.
No platform specific headers and symbols are included by kaizen/kaizen.h
.
However you can access headers containing _raw_
in their file name. These are
shallow wrappers around the platforms thread functionality and include platform
headers.
The code can be downloaded at: http://github.com/bjoernknafla/kaizen/
Please file issues with the code at: http://github.com/bjoernknafla/kaizen/issues/
kaizen just started to aggregate in code - and it will change, transform, and grow before it is really usable.
You have got questions, need to critisize me, or just want to say hello? I am looking forward to hear from you!
Bjoern Knafla
Bjoern Knafla Parallelization + AI + Gamedev Consulting
[email protected]
www.bjoernknafla.com
kaizen is free software. You may copy, distribute, and modify it under the terms of the license contained in the file COPYRIGHT.txt distributed with this package. This license is equal to the Simplified BSD License.
To build kaizen you have got the following options:
-
Define
KAIZEN_USE_APPLE_MACH_ABSOLUTE_TIME
and only compile the generic C source files and the C files ending in_apple_mac_absolute_time.c
to build for Apple platforms. -
Define
KAIZEN_USE_POSIX_CLOCK_GETTIME
and only compile generic C files and C source files ending in_posix_clock_gettime.c
to build for POSIX compliant platforms supportingclock_gettime
,clock_getres
, andCLOCK_REALTIME
. -
Define
KAIZEN_USE_WIN32_QUERY_PERFORMANCE_COUNTER
and only compile generic C source files, C files ending in_win32_query_performance_counter.c
to build for Windows OS.
All trademarks copyrights belong to their respective trademark holders and copyright owners.
- Initial release