mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Stats] Track NumASTBytesAllocated continuously
...so it can be used with flamegraphs.
This commit is contained in:
@@ -499,7 +499,6 @@ static void countStatsPostSema(UnifiedStatsReporter &Stats,
|
||||
auto const &AST = Instance.getASTContext();
|
||||
C.NumLoadedModules = AST.LoadedModules.size();
|
||||
C.NumImportedExternalDefinitions = AST.ExternalDefinitions.size();
|
||||
C.NumASTBytesAllocated = AST.getAllocator().getBytesAllocated();
|
||||
|
||||
if (auto *D = Instance.getDependencyTracker()) {
|
||||
C.NumDependencies = D->getDependencies().size();
|
||||
|
||||
Reference in New Issue
Block a user