ホーム › System.Diagnostics.ClrProfiling › ICorProfilerCallback4
ICorProfilerCallback4
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| functionId | UINT_PTR | in | 再 JIT コンパイルが開始された関数の識別子である。 |
| rejitId | UINT_PTR | in | この再 JIT を識別する ReJIT 識別子である。 |
| fIsSafeToBlock | BOOL | in | このコールバック内でブロックしても安全かどうかを示す BOOL である。 |
vtbl 84 HRESULT GetReJITParameters(UINT_PTR moduleId, DWORD methodId, ICorProfilerFunctionControl* pFunctionControl)
| moduleId | UINT_PTR | in | 再 JIT 対象メソッドが属するモジュールの識別子である。 |
| methodId | DWORD | in | 再 JIT 対象メソッドのメタデータトークンである。 |
| pFunctionControl | ICorProfilerFunctionControl* | in | 再 JIT コードの IL や codegen フラグを設定するための ICorProfilerFunctionControl インターフェイスへのポインタである。 |
vtbl 85 HRESULT ReJITCompilationFinished(UINT_PTR functionId, UINT_PTR rejitId, HRESULT hrStatus, BOOL fIsSafeToBlock)
| functionId | UINT_PTR | in | 再 JIT コンパイルが完了した関数の識別子である。 |
| rejitId | UINT_PTR | in | この再 JIT を識別する ReJIT 識別子である。 |
| hrStatus | HRESULT | in | 再 JIT コンパイルの成否を示す HRESULT である。 |
| fIsSafeToBlock | BOOL | in | このコールバック内でブロックしても安全かどうかを示す BOOL である。 |
vtbl 86 HRESULT ReJITError(UINT_PTR moduleId, DWORD methodId, UINT_PTR functionId, HRESULT hrStatus)
| moduleId | UINT_PTR | in | 再 JIT 中にエラーが発生したメソッドが属するモジュールの識別子である。 |
| methodId | DWORD | in | エラーが発生したメソッドのメタデータトークンである。 |
| functionId | UINT_PTR | in | エラーが発生した関数の識別子である。 |
| hrStatus | HRESULT | in | 発生したエラーを示す HRESULT である。 |
vtbl 87 HRESULT MovedReferences2(DWORD cMovedObjectIDRanges, UINT_PTR* oldObjectIDRangeStart, UINT_PTR* newObjectIDRangeStart, UINT_PTR* cObjectIDRangeLength)
| cMovedObjectIDRanges | DWORD | in | ガベージコレクションにより移動したオブジェクト ID 範囲の数である。 |
| oldObjectIDRangeStart | UINT_PTR* | in | 移動前の各範囲の開始オブジェクト ID を格納した配列へのポインタである。 |
| newObjectIDRangeStart | UINT_PTR* | in | 移動後の各範囲の開始オブジェクト ID を格納した配列へのポインタである。 |
| cObjectIDRangeLength | UINT_PTR* | in | 各範囲の長さ (バイト数) を格納した UINT_PTR 配列へのポインタである。 |
vtbl 88 HRESULT SurvivingReferences2(DWORD cSurvivingObjectIDRanges, UINT_PTR* objectIDRangeStart, UINT_PTR* cObjectIDRangeLength)
| cSurvivingObjectIDRanges | DWORD | in | コレクション後に生存したオブジェクト ID 範囲の数である。 |
| objectIDRangeStart | UINT_PTR* | in | 各生存範囲の開始オブジェクト ID を格納した配列へのポインタである。 |
| cObjectIDRangeLength | UINT_PTR* | in | 各生存範囲の長さ (バイト数) を格納した UINT_PTR 配列へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICorProfilerCallback4 "{7B63B2E3-107D-4D48-B2F6-F61E229470D2}" #usecom global ICorProfilerCallback4 IID_ICorProfilerCallback4 "{}" #comfunc global ICorProfilerCallback4_ReJITCompilationStarted 83 sptr,sptr,int #comfunc global ICorProfilerCallback4_GetReJITParameters 84 sptr,int,sptr #comfunc global ICorProfilerCallback4_ReJITCompilationFinished 85 sptr,sptr,int,int #comfunc global ICorProfilerCallback4_ReJITError 86 sptr,int,sptr,int #comfunc global ICorProfilerCallback4_MovedReferences2 87 int,var,var,var #comfunc global ICorProfilerCallback4_SurvivingReferences2 88 int,var,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICorProfilerCallback4 "{7B63B2E3-107D-4D48-B2F6-F61E229470D2}" #usecom global ICorProfilerCallback4 IID_ICorProfilerCallback4 "{}" #comfunc global ICorProfilerCallback4_ReJITCompilationStarted 83 sptr,sptr,int #comfunc global ICorProfilerCallback4_GetReJITParameters 84 sptr,int,sptr #comfunc global ICorProfilerCallback4_ReJITCompilationFinished 85 sptr,sptr,int,int #comfunc global ICorProfilerCallback4_ReJITError 86 sptr,int,sptr,int #comfunc global ICorProfilerCallback4_MovedReferences2 87 int,sptr,sptr,sptr #comfunc global ICorProfilerCallback4_SurvivingReferences2 88 int,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。