Skip to content

Do not use subroutine execution timers by default#1246

Merged
robgjansen merged 1 commit intoshadow:mainfrom
robgjansen:disable-perf-timers-backport
Apr 1, 2021
Merged

Do not use subroutine execution timers by default#1246
robgjansen merged 1 commit intoshadow:mainfrom
robgjansen:disable-perf-timers-backport

Conversation

@robgjansen
Copy link
Copy Markdown
Member

Shadow includes internal performance timers to help us track execution
time of various subroutines. The timer-related functions have shown
up on performance profiles as causing significant overhead. These timers
are now disabled by default.

We add a new --use-perf-timers option to the setup script, and a new
USE_PERF_TIMERS option to cmake that allows us to toggle the performance
timers back on if desired.

Closes #1141

(cherry-picked from commit e9004c2)

Shadow includes internal performance timers to help us track execution
time of various subroutines. The timer-related functions have shown
up on performance profiles as causing significant overhead. These timers
are now disabled by default.

We add a new --use-perf-timers option to the setup script, and a new
USE_PERF_TIMERS option to cmake that allows us to toggle the performance
timers back on if desired.

Closes #1141

(cherry-picked from commit e9004c2)
@robgjansen robgjansen added Type: Maintenance Refactoring, cleanup, documenation, or process improvements Component: Main Composing the core Shadow executable labels Apr 1, 2021
@robgjansen robgjansen added this to the Code health and maintenance milestone Apr 1, 2021
@robgjansen robgjansen self-assigned this Apr 1, 2021
@robgjansen robgjansen marked this pull request as ready for review April 1, 2021 16:14
@robgjansen robgjansen requested a review from sporksmith April 1, 2021 16:14
@robgjansen robgjansen merged commit 123bee0 into shadow:main Apr 1, 2021
@robgjansen robgjansen deleted the disable-perf-timers-backport branch April 1, 2021 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable Type: Maintenance Refactoring, cleanup, documenation, or process improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Significant time spent in g_get_monotonic_time

2 participants