Skip to content

Support absolute timestamp of torch profiler before 2.4 #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

gaogaotiantian
Copy link
Owner

Starting pytorch 2.4.0 (I think), they used a basetime offset + relative timestamp for trace events. Before that (at least for 2.3.0 I tested) they were using absolute timestamp. This PR makes both schema supported.

Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ebeb79d) to head (1ebde69).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #541   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines         2132      2132           
=========================================
  Hits          2132      2132           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gaogaotiantian gaogaotiantian merged commit f745735 into master Jan 26, 2025
31 checks passed
@gaogaotiantian gaogaotiantian deleted the optional-basetime branch January 26, 2025 01:36
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.

1 participant