yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.15k stars 184 forks source link

Connecting profiler_gui after capture has been started & stopped programmatically does not result in data being downloaded #153

Open mathieumallet opened 5 years ago

mathieumallet commented 5 years ago

Consider the following case:

  1. Run an application
  2. This application programmatically starts recording (EASY_PROFILER_ENABLE)
  3. After some time, the application programmatically stops recording (EASY_PROFILER_DISABLE)
  4. profiler_gui is connected to the still-running application

At this point, the application has recorded profiling data but that data isn't transmitted to the gui app.

To receive the data, the user has to use the Capture button in the GUI. However this causes new data to be captured, in addition to the previously-captured data. There is no way to get the previously-captured data only.

cas4ey commented 5 years ago

Yeah, currently profiler_gui will only receive the data if the application is profiling to the moment of profiler_gui connection.

todo