Skip to content

Conversation

@rwstauner
Copy link
Contributor

@rwstauner rwstauner commented Apr 9, 2025

Summary

  • Add a duration field to profile objects that tracks how long the profiled code block took to execute
  • Implement in BaseBackend to avoid code duplication
  • Add test to verify duration tracking

🤖 Generated with Claude Code

Profiles now track the duration of the block being profiled using Process.clock_gettime.
This allows accessing how long the profiled code took to execute via profile.duration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@rwstauner rwstauner merged commit e2c8de8 into main Apr 10, 2025
7 checks passed
@rwstauner rwstauner deleted the add-profile-duration-tracking branch April 10, 2025 14:47
@rwstauner rwstauner mentioned this pull request Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants