-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge ProfileData into ProfileRuntime
Summary: Collapsing the two singletons into one. All profiling bookkeeping is now held within the ProfileRuntime instance, with the exception of the LiveTypeMap. Our tests depend upon this structure having a global lifetime. Notable behavior changes: * All overloads of `serialize()` and `deserialize()` will now print the number of bytes, code objects, and types read/written. * `RuntimeTest` no longer tears down the fixture after running and collecting a profile. Doing so is a bit of a lie, we reset the JIT, but we can't actually reset the live types map because then we wouldn't be able to use the profile we saved (the string types don't have a mapping to anything). So it's more natural to make the fixture run the code, generate profiling info, and then prepare to generate HIR without resetting the JIT metadata. Reviewed By: swtaarrs Differential Revision: D47607471 fbshipit-source-id: e2da98ba792bf0ae2713667a71d7be871a010ebd
- Loading branch information
1 parent
d498b39
commit 9c814e1
Showing
13 changed files
with
434 additions
and
547 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
Oops, something went wrong.