mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
34 lines
885 B
C++
34 lines
885 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef PROFILERIOINTERPOSEOBSERVER_H
|
|
#define PROFILERIOINTERPOSEOBSERVER_H
|
|
|
|
#ifdef MOZ_ENABLE_PROFILER_SPS
|
|
|
|
#include "mozilla/IOInterposer.h"
|
|
|
|
namespace mozilla {
|
|
|
|
/**
|
|
* This class is the observer that calls into the profiler whenever
|
|
* main thread I/O occurs. It should only ever be called on the main thread.
|
|
*/
|
|
class ProfilerIOInterposeObserver MOZ_FINAL : public IOInterposeObserver
|
|
{
|
|
public:
|
|
ProfilerIOInterposeObserver();
|
|
~ProfilerIOInterposeObserver();
|
|
|
|
virtual void Observe(Operation aOp, double& aDuration,
|
|
const char* aModuleInfo);
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // MOZ_ENABLE_PROFILER_SPS
|
|
|
|
#endif // PROFILERIOINTERPOSEOBSERVER_H
|
|
|