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

Unified Diff: third_party/WebKit/Source/platform/probe/PlatformProbes.h

Issue 2772613002: [instrumentation] Rename InspectorInstrumentation into CoreProbes (Closed)
Patch Set: fix typo Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/probe/PlatformProbes.h
diff --git a/third_party/WebKit/Source/platform/instrumentation/PlatformTraceEventsAgent.h b/third_party/WebKit/Source/platform/probe/PlatformProbes.h
similarity index 32%
copy from third_party/WebKit/Source/platform/instrumentation/PlatformTraceEventsAgent.h
copy to third_party/WebKit/Source/platform/probe/PlatformProbes.h
index 9428d66240b7efc99291fa984834e9a156234cd9..0e51f014129cbe05eb49a918942cdfed359551a8 100644
--- a/third_party/WebKit/Source/platform/instrumentation/PlatformTraceEventsAgent.h
+++ b/third_party/WebKit/Source/platform/probe/PlatformProbes.h
@@ -2,28 +2,41 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PlatformTraceEventsAgent_h
-#define PlatformTraceEventsAgent_h
+#ifndef PlatformProbes_h
+#define PlatformProbes_h
#include "platform/PlatformExport.h"
-#include "platform/heap/Heap.h"
-#include "platform/instrumentation/tracing/TraceEvent.h"
+#include "platform/loader/fetch/FetchContext.h"
namespace blink {
+class FetchContext;
+class PlatformProbeSink;
+
namespace probe {
-class PlatformSendRequest;
-}
-class PLATFORM_EXPORT PlatformTraceEventsAgent
- : public GarbageCollected<PlatformTraceEventsAgent> {
+class PLATFORM_EXPORT ProbeBase {
+ STACK_ALLOCATED()
+
public:
- DEFINE_INLINE_TRACE() {}
+ double captureStartTime() const;
+ double captureEndTime() const;
+ double duration() const;
- void will(const probe::PlatformSendRequest&);
- void did(const probe::PlatformSendRequest&);
+ private:
+ mutable double m_startTime = 0;
+ mutable double m_endTime = 0;
};
+inline PlatformProbeSink* toPlatformProbeSink(FetchContext* context) {
+ return context->platformProbeSink();
+}
+
+} // namespace probe
} // namespace blink
-#endif // !defined(PlatformTraceEventsAgent_h)
+#undef PROBE_EXPORT
+
+#include "platform/PlatformProbesInl.h"
+
+#endif // PlatformProbes_h
« no previous file with comments | « third_party/WebKit/Source/platform/probe/OWNERS ('k') | third_party/WebKit/Source/platform/probe/PlatformProbes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698