Profiling support for unit and performance tests.
These are special purpose profiling methods which operate in a more fine-grained way than nose's profiling plugin.
Variable | cProfile |
Undocumented |
Class | ProfileStatsFile |
Store per-platform/fn profiling results in a file. |
Function | _start_current_test |
Undocumented |
Function | count_functions |
Undocumented |
Function | function_call_count |
Assert a target for a test case's function call count. |
Variable | _current_test |
String id of current test. |
Variable | _profile_stats |
global ProfileStatsFileInstance. |
Assert a target for a test case's function call count.
The main purpose of this assertion is to detect changes in callcounts for various functions - the actual number is not as important. Callcounts are stored in a file keyed to Python version and OS platform information. This file is generated automatically for new tests, and versioned so that unexpected changes in callcounts will be detected.