This reverts commit 714dea5e03.
This commit is contained in:
@@ -17,11 +17,7 @@ class FrameTimingSummarizer {
|
||||
/// Summarize `data` to frame build time and frame rasterizer time statistics.
|
||||
///
|
||||
/// See [TimelineSummary.summaryJson] for detail.
|
||||
factory FrameTimingSummarizer(
|
||||
List<FrameTiming> data, {
|
||||
int? newGenGCCount,
|
||||
int? oldGenGCCount,
|
||||
}) {
|
||||
factory FrameTimingSummarizer(List<FrameTiming> data) {
|
||||
assert(data != null);
|
||||
assert(data.isNotEmpty);
|
||||
final List<Duration> frameBuildTime = List<Duration>.unmodifiable(
|
||||
@@ -62,8 +58,6 @@ class FrameTimingSummarizer {
|
||||
p90VsyncOverhead: _findPercentile(vsyncOverheadSorted, 0.90),
|
||||
p99VsyncOverhead: _findPercentile(vsyncOverheadSorted, 0.99),
|
||||
worstVsyncOverhead: vsyncOverheadSorted.last,
|
||||
newGenGCCount: newGenGCCount ?? -1,
|
||||
oldGenGCCount: oldGenGCCount ?? -1,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -85,8 +79,6 @@ class FrameTimingSummarizer {
|
||||
required this.p90VsyncOverhead,
|
||||
required this.p99VsyncOverhead,
|
||||
required this.worstVsyncOverhead,
|
||||
required this.newGenGCCount,
|
||||
required this.oldGenGCCount,
|
||||
});
|
||||
|
||||
/// List of frame build time in microseconds
|
||||
@@ -141,12 +133,6 @@ class FrameTimingSummarizer {
|
||||
/// The largest value of [vsyncOverhead] in milliseconds.
|
||||
final Duration worstVsyncOverhead;
|
||||
|
||||
/// The number of new generation GCs.
|
||||
final int newGenGCCount;
|
||||
|
||||
/// The number of old generation GCs.
|
||||
final int oldGenGCCount;
|
||||
|
||||
/// Convert the summary result to a json object.
|
||||
///
|
||||
/// See [TimelineSummary.summaryJson] for detail.
|
||||
@@ -176,8 +162,6 @@ class FrameTimingSummarizer {
|
||||
'frame_rasterizer_times': frameRasterizerTime
|
||||
.map<int>((Duration datum) => datum.inMicroseconds)
|
||||
.toList(),
|
||||
'new_gen_gc_count': newGenGCCount,
|
||||
'old_gen_gc_count': oldGenGCCount,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user