-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CodeTimer.using() instead of creating new CodeTimers everywhere
All affected components followed the same basic pattern, with some variations: 1. Create the timer. 2. Enable / disable the timer, usually based on AppState. 3. Set a minimum threshold. 4. At the end, report to the profiling frame. Now (1), (2) and (4) are done automatically and consistently in `CodeTimer.using()`, with (2) and (3) also doable by the caller to customize the timer as needed.
- Loading branch information
1 parent
ca9753e
commit 07f5866
Showing
9 changed files
with
770 additions
and
780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.