Index: chrome/browser/nacl_host/nacl_process_host.cc |
=================================================================== |
--- chrome/browser/nacl_host/nacl_process_host.cc (revision 154320) |
+++ chrome/browser/nacl_host/nacl_process_host.cc (working copy) |
@@ -10,6 +10,7 @@ |
#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/message_loop.h" |
+#include "base/metrics/histogram.h" |
#include "base/path_service.h" |
#include "base/string_number_conversions.h" |
#include "base/string_split.h" |
@@ -213,6 +214,16 @@ |
// under us by autoupdate. |
NaClBrowser::GetInstance()->EnsureIrtAvailable(); |
#endif |
+ CommandLine* cmd = CommandLine::ForCurrentProcess(); |
+ UMA_HISTOGRAM_BOOLEAN( |
+ "NaCl.nacl-gdb", |
+ !cmd->GetSwitchValuePath(switches::kNaClGdb).empty()); |
+ UMA_HISTOGRAM_BOOLEAN( |
+ "NaCl.nacl-gdb-script", |
+ !cmd->GetSwitchValuePath(switches::kNaClGdbScript).empty()); |
+ UMA_HISTOGRAM_BOOLEAN( |
+ "NaCl.enable-nacl-debug", |
+ cmd->HasSwitch(switches::kEnableNaClDebug)); |
} |
void NaClProcessHost::Launch( |