summaryrefslogtreecommitdiff
path: root/src/ToolBox/superpmi/superpmi/methodstatsemitter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolBox/superpmi/superpmi/methodstatsemitter.h')
-rw-r--r--src/ToolBox/superpmi/superpmi/methodstatsemitter.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ToolBox/superpmi/superpmi/methodstatsemitter.h b/src/ToolBox/superpmi/superpmi/methodstatsemitter.h
new file mode 100644
index 0000000000..fb651b04b2
--- /dev/null
+++ b/src/ToolBox/superpmi/superpmi/methodstatsemitter.h
@@ -0,0 +1,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 \ No newline at end of file