monsdar / CxxProf

CxxProf is a manual instrumented Profiling library for C++. It's goal is to provide easy integration into existing projects with just as little overhead as possible. It should be easy to remove the profiling mechanism during compile and runtime from the code.
GNU General Public License v3.0
58 stars 5 forks source link

dbConvert: Use B/E-type phases #28

Open monsdar opened 10 years ago

monsdar commented 10 years ago

There are currently problems when empty activities (duration of 0.0) follow each other. trace-viewer then wants to display them at the same time which results in them stacking each other.

As this typically indicates that the top activity has called the bottom activity, this could lead to confusion.

It is currently solved by ignoring activities with a duration of 0.0 if there was another one before. However this could also lead to confusion, as the user might expect an activity somepoint and there isn't one.

A solution would be to use B/E activities here. These then simply would be displayed on top of each other. This solution is not yet implemented as it must be clear which activities belong to others, which could take some time to create.

See TODO in convert.py (currently Line75 and following)