Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Unified Diff: runtime/observatory/lib/src/sample_profile/sample_profile.dart

Issue 2999763002: Clear analyzer warning on Observatory (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/sample_profile/sample_profile.dart
diff --git a/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart b/runtime/observatory/lib/src/sample_profile/sample_profile.dart
similarity index 99%
rename from runtime/observatory/lib/src/cpu_profile/cpu_profile.dart
rename to runtime/observatory/lib/src/sample_profile/sample_profile.dart
index 76e1a2680f6bdbbaad8e09abe52ad3703e5bfea0..db9c060a0df57d7bc4e154d581193491b44cc0d5 100644
--- a/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart
+++ b/runtime/observatory/lib/src/sample_profile/sample_profile.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-part of cpu_profiler;
+part of sample_profiler;
abstract class CallTreeNode<NodeT extends M.CallTreeNode>
implements M.CallTreeNode {
@@ -460,7 +460,7 @@ class InlineIntervalTick {
}
class ProfileCode implements M.ProfileCode {
- final CpuProfile profile;
+ final SampleProfile profile;
final Code code;
int exclusiveTicks;
int inclusiveTicks;
@@ -588,7 +588,7 @@ class ProfileCode implements M.ProfileCode {
}
class ProfileFunction implements M.ProfileFunction {
- final CpuProfile profile;
+ final SampleProfile profile;
final ServiceFunction function;
// List of compiled code objects containing this function.
final List<ProfileCode> profileCodes = new List<ProfileCode>();
@@ -747,8 +747,7 @@ class ProfileFunction implements M.ProfileFunction {
}
}
-// TODO(johnmccutchan): Rename to SampleProfile
-class CpuProfile extends M.SampleProfile {
+class SampleProfile extends M.SampleProfile {
Isolate isolate;
int sampleCount = 0;
« no previous file with comments | « runtime/observatory/lib/src/repositories/sample_profile.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698