| 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
|
|
|