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

Side by Side Diff: Source/core/frame/UseCounter.h

Issue 1344053002: Add UMA tracing to requestIdleCallback. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix overrun UMA name Created 5 years, 3 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 | « Source/core/dom/ScriptedIdleTaskController.cpp ('k') | Source/core/frame/Window.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 ClipPathOfPositionedElement = 944, 834 ClipPathOfPositionedElement = 944,
835 ClipCssOfPositionedElement = 945, 835 ClipCssOfPositionedElement = 945,
836 NetInfoType = 946, 836 NetInfoType = 946,
837 NetInfoDownlinkMax = 947, 837 NetInfoDownlinkMax = 947,
838 NetInfoOnChange = 948, 838 NetInfoOnChange = 948,
839 NetInfoOnTypeChange = 949, 839 NetInfoOnTypeChange = 949,
840 V8Window_Alert_Method = 950, 840 V8Window_Alert_Method = 950,
841 V8Window_Confirm_Method = 951, 841 V8Window_Confirm_Method = 951,
842 V8Window_Prompt_Method = 952, 842 V8Window_Prompt_Method = 952,
843 V8Window_Print_Method = 953, 843 V8Window_Print_Method = 953,
844 V8Window_RequestIdleCallback_Method = 954,
844 845
845 // Add new features immediately above this line. Don't change assigned 846 // Add new features immediately above this line. Don't change assigned
846 // numbers of any item, and don't reuse removed slots. 847 // numbers of any item, and don't reuse removed slots.
847 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 848 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
848 // to update the UMA mapping. 849 // to update the UMA mapping.
849 NumberOfFeatures, // This enum value must be last. 850 NumberOfFeatures, // This enum value must be last.
850 }; 851 };
851 852
852 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 853 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
853 static void count(const Frame*, Feature); 854 static void count(const Frame*, Feature);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 939
939 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 940 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
940 941
941 CountBits m_countBits; 942 CountBits m_countBits;
942 BitVector m_CSSFeatureBits; 943 BitVector m_CSSFeatureBits;
943 }; 944 };
944 945
945 } // namespace blink 946 } // namespace blink
946 947
947 #endif // UseCounter_h 948 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptedIdleTaskController.cpp ('k') | Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698