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

Side by Side Diff: runtime/vm/service_event.cc

Issue 1660063002: Remove many features when building product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/service_event.h" 5 #include "vm/service_event.h"
6 6
7 #include "vm/message_handler.h" 7 #include "vm/message_handler.h"
8 8
9 namespace dart { 9 namespace dart {
10 10
11 #ifndef PRODUCT
12
11 // Translate from the legacy DebugEvent to a ServiceEvent. 13 // Translate from the legacy DebugEvent to a ServiceEvent.
12 static ServiceEvent::EventKind TranslateEventKind( 14 static ServiceEvent::EventKind TranslateEventKind(
13 DebuggerEvent::EventType kind) { 15 DebuggerEvent::EventType kind) {
14 switch (kind) { 16 switch (kind) {
15 case DebuggerEvent::kIsolateCreated: 17 case DebuggerEvent::kIsolateCreated:
16 return ServiceEvent::kIsolateStart; 18 return ServiceEvent::kIsolateStart;
17 19
18 case DebuggerEvent::kIsolateShutdown: 20 case DebuggerEvent::kIsolateShutdown:
19 return ServiceEvent::kIsolateExit; 21 return ServiceEvent::kIsolateExit;
20 22
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } 266 }
265 if (kind() == kVMUpdate) { 267 if (kind() == kVMUpdate) {
266 jsobj->AddPropertyVM("vm"); 268 jsobj->AddPropertyVM("vm");
267 } else { 269 } else {
268 jsobj->AddProperty("isolate", isolate()); 270 jsobj->AddProperty("isolate", isolate());
269 } 271 }
270 ASSERT(timestamp_ != -1); 272 ASSERT(timestamp_ != -1);
271 jsobj->AddPropertyTimeMillis("timestamp", timestamp_); 273 jsobj->AddPropertyTimeMillis("timestamp", timestamp_);
272 } 274 }
273 275
276 #endif // !PRODUCT
277
274 } // namespace dart 278 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698