Skip to content

Commit

Permalink
Add ?launchCounter, see phetsims/joist#980
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 3, 2024
1 parent 270d59a commit 3f1c5ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions js/initialize-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,17 @@
public: true
},

/**
* For memory profiling, it can sometimes be difficult to know when the app crashed and automatically restarted itself.
* This flag will show the launch counter so you can tell how many times it has been launched.
*
* NOTE: There is no easy way to clear the local storage for this value, so correct usage would focus on the differences
* in values rather than the absolute values.
*/
launchCounter: {
type: 'flag'
},

/**
* enables debugger commands in certain cases like thrown errors and failed tests.
*/
Expand Down

0 comments on commit 3f1c5ba

Please sign in to comment.