|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 #ifndef PROFILERIOINTERPOSEOBSERVER_H |
|
6 #define PROFILERIOINTERPOSEOBSERVER_H |
|
7 |
|
8 #ifdef MOZ_ENABLE_PROFILER_SPS |
|
9 |
|
10 #include "mozilla/IOInterposer.h" |
|
11 |
|
12 namespace mozilla { |
|
13 |
|
14 /** |
|
15 * This class is the observer that calls into the profiler whenever |
|
16 * main thread I/O occurs. |
|
17 */ |
|
18 class ProfilerIOInterposeObserver MOZ_FINAL : public IOInterposeObserver |
|
19 { |
|
20 public: |
|
21 virtual void Observe(Observation& aObservation); |
|
22 }; |
|
23 |
|
24 } // namespace mozilla |
|
25 |
|
26 #endif // MOZ_ENABLE_PROFILER_SPS |
|
27 |
|
28 #endif // PROFILERIOINTERPOSEOBSERVER_H |