1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | #ifndef __EVENTPIPE_EVENTSOURCE_H__ |
6 | #define __EVENTPIPE_EVENTSOURCE_H__ |
7 | |
8 | #ifdef FEATURE_PERFTRACING |
9 | |
10 | class EventPipeProvider; |
11 | class EventPipeEvent; |
12 | class EventPipeSession; |
13 | |
14 | class EventPipeEventSource |
15 | { |
16 | private: |
17 | const static WCHAR* s_pProviderName; |
18 | EventPipeProvider *m_pProvider; |
19 | |
20 | const static WCHAR* s_pProcessInfoEventName; |
21 | EventPipeEvent *m_pProcessInfoEvent; |
22 | |
23 | public: |
24 | EventPipeEventSource(); |
25 | ~EventPipeEventSource(); |
26 | |
27 | void Enable(EventPipeSession *pSession); |
28 | void SendProcessInfo(LPCWSTR pCommandLine); |
29 | }; |
30 | |
31 | #endif // FEATURE_PERFTRACING |
32 | |
33 | #endif // __EVENTPIPE_EVENTSOURCE_H__ |
34 | |