Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 1361803003: Clamp resolution of requestIdleCallback timeRemaining() to 5us. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rIC_histograms
Patch Set: Rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 47 matching lines...)
58 public: 58 public:
59 ~PerformanceBase() override; 59 ~PerformanceBase() override;
60 60
61 const AtomicString& interfaceName() const override; 61 const AtomicString& interfaceName() const override;
62 62
63 virtual PerformanceTiming* timing() const; 63 virtual PerformanceTiming* timing() const;
64 double now() const; 64 double now() const;
65 65
66 double timeOrigin() const { return m_timeOrigin; } 66 double timeOrigin() const { return m_timeOrigin; }
67 67
68 static double clampTimeResolution(double timeSeconds);
69
68 PerformanceEntryVector getEntries() const; 70 PerformanceEntryVector getEntries() const;
69 PerformanceEntryVector getEntriesByType(const String& entryType); 71 PerformanceEntryVector getEntriesByType(const String& entryType);
70 PerformanceEntryVector getEntriesByName(const String& name, const String& en tryType); 72 PerformanceEntryVector getEntriesByName(const String& name, const String& en tryType);
71 73
72 void clearResourceTimings(); 74 void clearResourceTimings();
73 void setResourceTimingBufferSize(unsigned); 75 void setResourceTimingBufferSize(unsigned);
74 76
75 DEFINE_ATTRIBUTE_EVENT_LISTENER(resourcetimingbufferfull); 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(resourcetimingbufferfull);
76 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull); 78 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
77 79
(...skipping 47 matching lines...)
125 PerformanceEntryTypeMask m_observerFilterOptions; 127 PerformanceEntryTypeMask m_observerFilterOptions;
126 PerformanceObservers m_observers; 128 PerformanceObservers m_observers;
127 PerformanceObservers m_activeObservers; 129 PerformanceObservers m_activeObservers;
128 PerformanceObservers m_suspendedObservers; 130 PerformanceObservers m_suspendedObservers;
129 Timer<PerformanceBase> m_deliverObservationsTimer; 131 Timer<PerformanceBase> m_deliverObservationsTimer;
130 }; 132 };
131 133
132 } // namespace blink 134 } // namespace blink
133 135
134 #endif // PerformanceBase_h 136 #endif // PerformanceBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IdleDeadline.cpp ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine