generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean function and shorten file names only in macros (#182)
### Checklist * [x] I have read the [Contributor Guide](../CONTRIBUTING.md) * [x] I have read and agree to the [Code of Conduct](../CODE_OF_CONDUCT.md) * [x] I have added a description of my changes and why I'd like them included in the section below ### Description of Changes Clean the function names and shorten the file paths from the `::{{closure}}::{{closure}}::f` suffix directly in the `profile_function!` and `profile_scope!` macros when registering the scope (in the `OnceLock::get_or_init` closure). Motivation: Avoid making assumptions about the format of the function names and file paths, for those who are using puffin directly as a general profiling tool (not going through `profile_function!` and `profile_scope!` macros).
- Loading branch information
Showing
3 changed files
with
7 additions
and
25 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
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
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