I have been playing around with profiling in my application, and I ran into the following issue. Whenever I created nested profiling sections, the output looks like this:
This is wrong! As soon as the call to start the ‘run_my_step’ section is handled, it immediately writes the E31 line as well, which looks to be wrong. The actual end is called and written correctly later on. The precice-cli tool fails to merge these logs, complaining about improperly nested events. When I manually remove the first E31 line, it processes properly and the output looks okay.
Am I correct this is a bug? Has anyone else noticed this? This seems a very basic functionality and I haven’t seen any reports about it anywhere.
I don’t know if this is already considered, but it is definitely good to have such feedback, especially since the profiling tools are rather new and so far mostly internally used.