Profiling Benchmarks
PkgJogger has support for profiling existing benchmarks using one of the Supported Profilers. Profiling support is currently limited; notably:
- Only a single benchmark can be profiled at a time
- Automated saving or loading of profile results is not supported
Supported Profilers
CPU
PkgJogger.profile — Methodprofiler=:cpuProfiles the benchmark using Julia's built-in profiler: Profile.@profile
Allocations
PkgJogger.profile — Method profiler=:allocsProfiles memory allocations using the built-in Profile.Allocs.@profile
Accepts sample_rate as a kwarg to control the rate of recordings. A rate of 1.0 will record everything; 0.0 will record nothing. See Profile.Allocs.@profile for more.
GPU
PkgJogger.profile — Methodprofiler=:cudaProfiles the benchmark using CUDA.@profile.
This only activates the CUDA profiler, you need to launch the profiler externally. See CUDA Profiling for documentation.