yse / easy_profiler

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

Viewing multiple .prof files simultaneously #156

Open babrodtk opened 5 years ago

babrodtk commented 5 years ago

I am working with a parallel MPI code, and it would be really useful to be able to see multiple files in the same view.

My use case scenario is that each process (or thread for that matter) keeps track of it's own profiling metrics, and writes that to separate files, one per parallel thread of execution. I would very much like to see these in the same view with the same timeline. Is that possible to do today, or something that would be possible to support? It looks to me as if a lot of the components required are already there.

cas4ey commented 5 years ago

Hi @babrodtk
No, it's not possible to view several .prof files in the same view (you can launch several instances of profiler itself though).
You have to profile all threads in one session and save them to the same .prof file (or get data via network).
I think it is possible to create a tool for merging several .prof files, but that's not gonna be easy.
.prof file format is documented here if you want to try it by yourself right now... :-)

babrodtk commented 5 years ago

Nice documentation, thanks!