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

Side by Side Diff: tools/metrics/actions/extract_actions.py

Issue 133483003: Add one extra UMA for video casting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Extract UserMetrics "actions" strings from the Chrome source. 7 """Extract UserMetrics "actions" strings from the Chrome source.
8 8
9 This program generates the list of known actions we expect to see in the 9 This program generates the list of known actions we expect to see in the
10 user behavior logs. It walks the Chrome source, looking for calls to 10 user behavior logs. It walks the Chrome source, looking for calls to
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 actions.add('PDF_Unsupported_XFA') 201 actions.add('PDF_Unsupported_XFA')
202 202
203 def AddAndroidActions(actions): 203 def AddAndroidActions(actions):
204 """Add actions that are used by Chrome on Android. 204 """Add actions that are used by Chrome on Android.
205 205
206 Arguments 206 Arguments
207 actions: set of actions to add to. 207 actions: set of actions to add to.
208 """ 208 """
209 actions.add('Cast_Sender_CastEnterFullscreen'); 209 actions.add('Cast_Sender_CastEnterFullscreen');
210 actions.add('Cast_Sender_CastDeviceSelected'); 210 actions.add('Cast_Sender_CastDeviceSelected');
211 actions.add('Cast_Sender_YouTubeDeviceSelected'); 211 actions.add('Cast_Sender_YouTubeDeviceSelected');
xhwang 2014/01/31 20:04:39 can you help fix the order here?
Miguel Garcia 2014/02/03 09:56:18 Done.
212 actions.add('Cast_Sender_CastPlayRequested'); 212 actions.add('Cast_Sender_CastPlayRequested');
213 actions.add('Cast_Sender_CastMediaType');
xhwang 2014/01/31 20:04:39 I believe these actions are added in lexicographic
Miguel Garcia 2014/02/03 09:56:18 Done.
213 actions.add('DataReductionProxy_PromoDisplayed'); 214 actions.add('DataReductionProxy_PromoDisplayed');
214 actions.add('DataReductionProxy_PromoLearnMore'); 215 actions.add('DataReductionProxy_PromoLearnMore');
215 actions.add('DataReductionProxy_TurnedOn'); 216 actions.add('DataReductionProxy_TurnedOn');
216 actions.add('DataReductionProxy_TurnedOnFromPromo'); 217 actions.add('DataReductionProxy_TurnedOnFromPromo');
217 actions.add('DataReductionProxy_TurnedOff'); 218 actions.add('DataReductionProxy_TurnedOff');
218 actions.add('MobileActionBarShown') 219 actions.add('MobileActionBarShown')
219 actions.add('MobileBeamCallbackSuccess') 220 actions.add('MobileBeamCallbackSuccess')
220 actions.add('MobileBeamInvalidAppState') 221 actions.add('MobileBeamInvalidAppState')
221 actions.add('MobileBreakpadUploadAttempt') 222 actions.add('MobileBreakpadUploadAttempt')
222 actions.add('MobileBreakpadUploadFailure') 223 actions.add('MobileBreakpadUploadFailure')
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 else: 629 else:
629 print action 630 print action
630 631
631 if hash_output: 632 if hash_output:
632 print "Done. Do not forget to add chromeactions.txt to your changelist" 633 print "Done. Do not forget to add chromeactions.txt to your changelist"
633 return 0 634 return 0
634 635
635 636
636 if '__main__' == __name__: 637 if '__main__' == __name__:
637 sys.exit(main(sys.argv)) 638 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698