1//
2// Copyright (c) Microsoft. All rights reserved.
3// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4//
5
6//-----------------------------------------------------------------------------
7// MethodStatsEmitter.h - Emits useful method stats for compiled methods for analysis
8//-----------------------------------------------------------------------------
9#ifndef _MethodStatsEmitter
10#define _MethodStatsEmitter
11
12#include "methodcontext.h"
13#include "jitinstance.h"
14
15class MethodStatsEmitter
16{
17
18private:
19 char* statsTypes;
20 HANDLE hStatsFile;
21
22public:
23 MethodStatsEmitter(char* nameOfInput);
24 ~MethodStatsEmitter();
25
26 void Emit(int methodNumber, MethodContext* mc, ULONGLONG firstTime, ULONGLONG secondTime);
27 void SetStatsTypes(char* types);
28};
29#endif