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

Unified Diff: runtime/bin/vmstats_impl.h

Issue 13603002: Added ctrl-\ command that dumps isolate stacks to dart binary. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/bin/main.cc ('k') | runtime/bin/vmstats_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmstats_impl.h
===================================================================
--- runtime/bin/vmstats_impl.h (revision 21583)
+++ runtime/bin/vmstats_impl.h (working copy)
@@ -17,18 +17,28 @@
class VmStats {
public:
- static void Start(int port, const char* root_dir);
+ static void Initialize();
+
+ static void Start(int port, const char* root_dir, bool verbose);
static void Stop();
// Add and remove functions for the isolate_table, called by main.cc.
static void AddIsolate(IsolateData* isolate_data, Dart_Isolate isolate);
static void RemoveIsolate(IsolateData* isolate_data);
+ // Print stack traces of current isolates to stdout.
+ static void DumpStack();
+
private:
- VmStats() : root_directory_(NULL), running_(false), bind_address_(0) {}
+ explicit VmStats(bool verbose) :
+ root_directory_(NULL), running_(false), bind_address_(0) {
+ verbose_ = verbose;
+ }
+ static void StartServer(int port, const char* root_dir);
static void WebServer(uword bind_address);
static void Shutdown();
+ static void DumpStackThread(uword unused);
// Status text generators.
char* IsolatesStatus();
@@ -39,6 +49,7 @@
IsolateTable isolate_table_;
bool running_;
int64_t bind_address_;
+ bool verbose_;
static VmStats* instance_;
static dart::Monitor* instance_monitor_;
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/vmstats_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698