forked from nim-works/nimskull
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal: separate VM profiler data from
ConfigRef
(nim-works#899)
## Summary Store the data collected by the VM profiler with the profiler itself, instead of storing it with the global configuration state (`ConfigRef`). This allows for moving the profiler-related data types closer to the `vmprofiler` module, and it also shrinks the surface of `ConfigRef` and the `options` module. ## Details * move all profiler-related data types to `vmdef`; they should ideally be placed in the `vmprofiler` module, but that would currently introduce cyclic dependencies * `vmprofiler.dump` now accepts a `Profiler` instance; for rendering the data associated with a VM context, the new `compilerbridge.dumpVmProfilerData` procedure is now used
- Loading branch information
Showing
6 changed files
with
35 additions
and
30 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
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