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

Add Statistic tracking for Context push/pop operations #587

Conversation

AleksandarZeljic
Copy link
Collaborator

This PR adds basic statistic tracking of number of context push/pop operations, as well as time breakdown between the push/pop and related hook calls.

@@ -391,6 +397,53 @@ void Statistics::print()
, totalTimeGettingSoIPhasePatternMicro
, printPercents( totalTimeGettingSoIPhasePatternMicro,
timeMainLoopMicro ) );

printf( "\t--- Context dependent statistics ---\n" );
Copy link
Collaborator

Choose a reason for hiding this comment

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

We printed NUM_POPS and NUM_SPLITS above. How are NUM_CONTEXT_PUSHES/POPS different from those? (Do we want to print these statistics together?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The semantics actually differ, since push and pop above are the old SmtCore implementation. I printed them here, since these are actual context operations and they can be used to gauge the average cost of a push/pop operation. In the new SmtCore the two semantics will actually match and I would still want the statistics shown in both places. Maybe even introduce average calculation or something.

@AleksandarZeljic AleksandarZeljic merged commit fe11a45 into NeuralNetworkVerification:master Sep 19, 2022
@AleksandarZeljic AleksandarZeljic deleted the cdStatistics branch September 19, 2022 19:18
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.

2 participants