Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / base / metrics / user_metrics.h
index 10e7d3c..bcfefb8 100644 (file)
@@ -17,6 +17,8 @@ namespace base {
 // the user metrics system.
 
 // Record that the user performed an action.
+// This method *must* be called from the main thread.
+//
 // "Action" here means a user-generated event:
 //   good: "Reload", "CloseTab", and "IMEInvoked"
 //   not good: "SSLDialogShown", "PageLoaded", "DiskFull"
@@ -30,9 +32,10 @@ namespace base {
 // name from the hash later on.
 //
 // Once a new recorded action is added, run
-// tools/metrics/actions/extract_actions.py --hash
-// to generate a new mapping of [action hashes -> metric names] and send it
-// out for review to be updated.
+//   tools/metrics/actions/extract_actions.py
+// to add the metric to actions.xml, then update the <owner>s and <description>
+// sections. Make sure to include the actions.xml file when you upload your code
+// for review!
 //
 // For more complicated situations (like when there are many different
 // possible actions), see RecordComputedAction.