cbILHeader is actually ILBytes

This commit is contained in:
Mukul Sabharwal 2019-08-04 03:48:15 -07:00
Родитель 8557dc17d0
Коммит d51ab3fc79
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -694,14 +694,7 @@ HRESULT STDMETHODCALLTYPE BPerfProfilerCallback::ModuleInMemorySymbolsUpdated(Mo
HRESULT STDMETHODCALLTYPE BPerfProfilerCallback::DynamicMethodJITCompilationStarted(FunctionID functionId, BOOL fIsSafeToBlock, LPCBYTE ilHeader, ULONG cbILHeader)
{
if (reinterpret_cast<const COR_ILMETHOD_TINY*>(ilHeader)->IsTiny())
{
this->totalILBytesJittedForDynamicMethods += reinterpret_cast<const COR_ILMETHOD_TINY*>(ilHeader)->GetCodeSize();
}
else if (reinterpret_cast<const COR_ILMETHOD_FAT*>(ilHeader)->IsFat())
{
this->totalILBytesJittedForDynamicMethods += reinterpret_cast<const COR_ILMETHOD_FAT*>(ilHeader)->GetCodeSize();
}
this->totalILBytesJittedForDynamicMethods += cbILHeader;
++this->totalNumberOfDynamicMethods;
++this->currentNumberOfDynamicMethods;