Skip to content
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

timing manager #306

Merged
merged 3 commits into from
Aug 15, 2024
Merged

timing manager #306

merged 3 commits into from
Aug 15, 2024

Conversation

odespard
Copy link
Collaborator

For tracking performance of different optimization methods, it will be useful to know how long it takes to perform both optimization and extraction for a given file. In this revision, this information is recorded by the timing manager and returned to the user in the stat.tsv file.

@odespard odespard changed the title add timing manager and unit test timing manager Aug 14, 2024
@odespard odespard merged commit c26e409 into development Aug 15, 2024
5 checks passed
@odespard odespard deleted the timing_manager branch August 15, 2024 13:21
alphadia/outputtransform.py Show resolved Hide resolved
alphadia/outputtransform.py Show resolved Hide resolved
alphadia/workflow/manager.py Show resolved Hide resolved
alphadia/workflow/manager.py Show resolved Hide resolved
alphadia/workflow/manager.py Show resolved Hide resolved
@@ -894,6 +897,8 @@ def extraction(self):

self.log_precursor_df(precursor_df)

self.timing_manager.end("extraction")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if self.timing_manager.start("extraction") was called again, this would overwrite the previously recorded timeing, right? is this intended? or should we change it such that it accumulates?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose it would. Why would we want to start the same timing twice though (unless we were trying to time iterations of a loop or something like that, but then I think we would need to make the whole logic of the timing manager considerably more complex)?

alphadia/outputtransform.py Show resolved Hide resolved
@GeorgWa GeorgWa added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants