Skip to content
  • Mark OLESEN's avatar
    ENH: improve suspend/resume handling of Pstream profiling (#2737) · 5de59417
    Mark OLESEN authored
    - allow reporting even when profiling is suspended
    
    - consolidate reporting into profilingPstream itself
      (avoids code scatter).
    
    Example of possible advanced use for timing only one section of
    code:
    
        ====
        // Profile local operations
        profilingPstream::enable();
    
        ... do something
    
        // Don't profile elsewhere
        profilingPstream::suspend();
        ====
    5de59417