/src/mozilla-central/tools/profiler/gecko/ProfilerIOInterposeObserver.h
Line | Count | Source (jump to first uncovered line) |
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 | | #include "mozilla/IOInterposer.h" |
9 | | #include "nsISupportsImpl.h" |
10 | | |
11 | | namespace mozilla { |
12 | | |
13 | | /** |
14 | | * This class is the observer that calls into the profiler whenever |
15 | | * main thread I/O occurs. |
16 | | */ |
17 | | class ProfilerIOInterposeObserver final : public IOInterposeObserver |
18 | | { |
19 | | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ProfilerIOInterposeObserver) |
20 | | |
21 | | public: |
22 | | virtual void Observe(Observation& aObservation) override; |
23 | | |
24 | | protected: |
25 | 0 | virtual ~ProfilerIOInterposeObserver() {} |
26 | | }; |
27 | | |
28 | | } // namespace mozilla |
29 | | |
30 | | #endif // PROFILERIOINTERPOSEOBSERVER_H |