summaryrefslogtreecommitdiff
path: root/src/ToolBox/superpmi/superpmi/methodstatsemitter.h
blob: fb651b04b282c8c3d234a2f7db142fbc160052c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

//-----------------------------------------------------------------------------
// MethodStatsEmitter.h - Emits useful method stats for compiled methods for analysis
//-----------------------------------------------------------------------------
#ifndef _MethodStatsEmitter
#define _MethodStatsEmitter

#include "methodcontext.h"
#include "jitinstance.h"

class MethodStatsEmitter
{

private:
    char *statsTypes;
    HANDLE hStatsFile;

public:
    MethodStatsEmitter(char *nameOfInput);
    ~MethodStatsEmitter();

    void Emit(int methodNumber, MethodContext *mc, ULONGLONG firstTime, ULONGLONG secondTime);
    void SetStatsTypes(char *types);
};
#endif