Revise performance measurement naming and structure (#2265)

* Revise performance measurement naming and structure

- Revises naming from LayoutSpecGeneration to LayoutSpecComputation
- Adds a struct instead of an NSDictionary to retrieve performance metrics
- Includes ASEnvironmentStatePropagateDown in LayoutSpecComputation measurements

* Revise SumScopeTimer to include enable flag

* Make struct a typedef
This commit is contained in:
Harry Shamansky
2016-09-20 12:39:09 -07:00
committed by Adlai Holler
parent 5990376f68
commit 71fc2dd18d
4 changed files with 46 additions and 45 deletions

View File

@@ -171,9 +171,9 @@ FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayNodesScheduledBefo
// performance measurement
ASDisplayNodePerformanceMeasurementOptions _measurementOptions;
NSTimeInterval _layoutSpecTotalTime;
NSUInteger _layoutSpecNumberOfPasses;
NSTimeInterval _layoutGenerationTotalTime;
NSUInteger _layoutGenerationNumberOfPasses;
NSInteger _layoutSpecNumberOfPasses;
NSTimeInterval _layoutComputationTotalTime;
NSInteger _layoutComputationNumberOfPasses;
#if TIME_DISPLAYNODE_OPS
@public