profile.h 513 B

1234567891011121314151617
  1. #pragma once
  2. #include <stdio.h>
  3. // Starts capturing execution samples
  4. void BeginProfiling();
  5. // Resets captured execution samples
  6. void ResetProfile();
  7. // Pauses capturing execution samples and dumps them to the file
  8. // Samples are not cleared so that profiling can be continued by calling BeginProfiling()
  9. // or it can be started from scratch by calling ResetProfile() and then BeginProfiling()
  10. void EndProfiling(FILE* out);
  11. // Dumps the profile to default file (basename.pid.N.profile)
  12. void EndProfiling();