blob: 9a865ac90444598b5ef289a6928e19d473ab8ab9 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// EEProfInterfaces.h
//
//
// Common types used internally in the EE to support issuing profiling API callbacks
//
// ======================================================================================
#ifndef _EEPROFINTERFACES_H_
#define _EEPROFINTERFACES_H_
#include <stddef.h>
#include "corprof.h"
#include "profilepriv.h"
#define PROF_USER_MASK 0xFFFFFFFF
class EEToProfInterfaceImpl;
class ProfToEEInterfaceImpl;
class Thread;
class Frame;
class MethodDesc;
class Object;
class Module;
// This file defines the _internal_ interface between the EE and the
// implementation of the COM profiling API. The _external_ API is defined
// in inc/corprof.idl.
//
// Most IDs used by the _external_ API are just the pointer values
// of the corresponding CLR data structure.
//
/*
* The following methods dispatch allocations tracking to the profiler as
* well as the method table reordering codes (as appropriate).
*/
void __stdcall ProfilerObjectAllocatedCallback(OBJECTREF objref, ClassID classId);
void __stdcall GarbageCollectionStartedCallback(int generation, BOOL induced);
void __stdcall GarbageCollectionFinishedCallback();
void __stdcall UpdateGenerationBounds();
#include "eetoprofinterfaceimpl.h"
enum PTR_TYPE
{
PT_MODULE,
PT_ASSEMBLY,
};
void __stdcall ProfilerManagedToUnmanagedTransitionMD(MethodDesc * pMD,
COR_PRF_TRANSITION_REASON reason);
void __stdcall ProfilerUnmanagedToManagedTransitionMD(MethodDesc * pMD,
COR_PRF_TRANSITION_REASON reason);
#endif //_EEPROFINTERFACES_H_
|