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

Unified Diff: runtime/vm/dart.cc

Issue 1811613002: Timeline API fixes for Flutter (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 36ef3f0e90761ffc07b9f41057b3ae0212b67030..79e19cbc0632c1da2006d8465800eae00d2cb61c 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -29,6 +29,7 @@
#include "vm/symbols.h"
#include "vm/thread_interrupter.h"
#include "vm/thread_pool.h"
+#include "vm/timeline.h"
#include "vm/virtual_memory.h"
#include "vm/zone.h"
@@ -391,7 +392,9 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
Thread* T = Thread::Current();
Isolate* I = T->isolate();
NOT_IN_PRODUCT(
- TimelineDurationScope tds(T, I->GetIsolateStream(), "InitializeIsolate");
+ TimelineDurationScope tds(T,
+ Timeline::GetIsolateStream(),
+ "InitializeIsolate");
tds.SetNumArguments(1);
tds.CopyArgument(0, "isolateName", I->name());
)
@@ -400,7 +403,7 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
HandleScope handle_scope(T);
{
NOT_IN_PRODUCT(TimelineDurationScope tds(T,
- I->GetIsolateStream(), "ObjectStore::Init"));
+ Timeline::GetIsolateStream(), "ObjectStore::Init"));
ObjectStore::Init(I);
}
@@ -411,7 +414,7 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
if (snapshot_buffer != NULL) {
// Read the snapshot and setup the initial state.
NOT_IN_PRODUCT(TimelineDurationScope tds(T,
- I->GetIsolateStream(), "IsolateSnapshotReader"));
+ Timeline::GetIsolateStream(), "IsolateSnapshotReader"));
// TODO(turnidge): Remove once length is not part of the snapshot.
const Snapshot* snapshot = Snapshot::SetupFromBuffer(snapshot_buffer);
if (snapshot == NULL) {
@@ -449,7 +452,7 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
{
NOT_IN_PRODUCT(TimelineDurationScope tds(T,
- I->GetIsolateStream(), "StubCode::Init"));
+ Timeline::GetIsolateStream(), "StubCode::Init"));
StubCode::Init(I);
}
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698