Skip to content

RAII-based profiling session management #13

Description

@codingwithmagga

Description

A profiling session class that encapsulates start, stop, and read operations via RAII, ensuring resource-safe profiling even in the presence of exceptions.

Acceptance Criteria

  • Counters are started on construction and stopped automatically on destruction
  • An explicit read() call returns the current counter values at any point
  • File descriptors and other resources are released correctly on exception
  • Multiple independent sessions can exist concurrently

Notes

TDD — tests are written before implementation code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions