emberian / hprof

A real-time hierarchical profiler
Boost Software License 1.0
80 stars 11 forks source link

Less verbose printing #2

Closed ghost closed 9 years ago

ghost commented 9 years ago

The print format is a bit verbose. It might be nice to do something with less noise.

right now

  setup - 1133523ns (6.725068%)
  physics - 2258292ns (13.3982%)
    collision - 1140731ns (50.512998%)
    update positions - 1108782ns (49.098257%)
  render - 13446767ns (79.778204%)
    cull - 1134725ns (8.438646%)
    gpu submit - 2197346ns (16.341073%)
    gpu wait - 10088879ns (75.028287%)
  something fast - 62ns (0.000001%)

Maybe something like:

  setup - 1.134ms (6.73%)
  physics - 2.259ms (13.40%)
    collision - 1.140ms (50.51%)
    update positions - 1.108ms (49.10%)
  render - 13.446ms (79.78%)
    cull - 1.134ms (8.44%)
    gpu submit - 2.197ms (16.34%)
    gpu wait - 10.088ms (75.03%)
  something fast - 62ns (0.00%)