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

Side by Side Diff: runtime/bin/vmservice_impl.h

Issue 2775463002: Make --trace-loading great again. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/vmservice/loader.dart ('k') | runtime/bin/vmservice_impl.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef RUNTIME_BIN_VMSERVICE_IMPL_H_ 5 #ifndef RUNTIME_BIN_VMSERVICE_IMPL_H_
6 #define RUNTIME_BIN_VMSERVICE_IMPL_H_ 6 #define RUNTIME_BIN_VMSERVICE_IMPL_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "platform/globals.h" 10 #include "platform/globals.h"
11 11
12 namespace dart { 12 namespace dart {
13 namespace bin { 13 namespace bin {
14 14
15 class VmService { 15 class VmService {
16 public: 16 public:
17 static bool LoadForGenPrecompiled(); 17 static bool LoadForGenPrecompiled();
18 18
19 static bool Setup(const char* server_ip, 19 static bool Setup(const char* server_ip,
20 intptr_t server_port, 20 intptr_t server_port,
21 bool running_precompiled, 21 bool running_precompiled,
22 bool dev_mode_server); 22 bool dev_mode_server,
23 bool trace_loading);
23 24
24 // Error message if startup failed. 25 // Error message if startup failed.
25 static const char* GetErrorMessage(); 26 static const char* GetErrorMessage();
26 27
27 // HTTP Server's address. 28 // HTTP Server's address.
28 static const char* GetServerAddress() { return &server_uri_[0]; } 29 static const char* GetServerAddress() { return &server_uri_[0]; }
29 30
30 private: 31 private:
31 static const intptr_t kServerUriStringBufferSize = 1024; 32 static const intptr_t kServerUriStringBufferSize = 1024;
32 friend void NotifyServerState(Dart_NativeArguments args); 33 friend void NotifyServerState(Dart_NativeArguments args);
(...skipping 13 matching lines...) Expand all
46 static char server_uri_[kServerUriStringBufferSize]; 47 static char server_uri_[kServerUriStringBufferSize];
47 48
48 DISALLOW_ALLOCATION(); 49 DISALLOW_ALLOCATION();
49 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService); 50 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService);
50 }; 51 };
51 52
52 } // namespace bin 53 } // namespace bin
53 } // namespace dart 54 } // namespace dart
54 55
55 #endif // RUNTIME_BIN_VMSERVICE_IMPL_H_ 56 #endif // RUNTIME_BIN_VMSERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/loader.dart ('k') | runtime/bin/vmservice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698