Page Content
hide
Public Enum ptLevels
-
- ptLevelNone
- ptLevelLow
- ptLevelMedium
- ptLevelHigh
- ptLevelAll
purpose
These are given when creating a cProcProfiler or starting a cProcTimer. They allow you to filter which sections to include in a profile session without having to change your code. A cProcProfiler created with a level of ptLevelNone will not do any profiling at all -essentially disabling profiling but allowing the code to remain.
1 2 3 4 5 |
' create defaultprofiler, and start Call procProfilerConstruct(, ptLevelNone) ' ' ... some code ' |
1 2 3 4 5 |
' create defaultprofiler, and start Call procProfilerConstruct(, ptLevelAll) ' ' ... some code ' |
1 2 3 4 5 |
' create defaultprofiler, and start Call procProfilerConstruct(, ptLevelMedium) ' ' ... some code ' |
1 2 3 4 5 6 7 8 9 10 |
' create defaultprofiler, and start Call procProfilerConstruct(, ptLevelMedium) ' ' ... some code ' Call procProfiler.Start("I will be processed", "example Profile", ptLevelLow) ' Call procProfiler.Start("So will I", "example Profile", ptLevelMedium) ' Call procProfiler.Start("I will not be processed", "example Profile", ptLevelHigh) |
Notes
Using ptLevels allows you to leave profiler code in place and control its execution from just one place when you create the profiler in the first place