C# Класс FyreVM.Profiling.Profiler

Tracks and analyzes a game's performance.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetResults ( ) : FyreVM.Profiling.ProfiledRoutine[]

Gets the current set of profiler results.

Profiler ( ) : System
ReadDebugSymbols ( Stream gameFile, Stream debugFile ) : void

Reads function names and addresses from a game debugging file.

ReadDescriptions ( string autoInfFile ) : void

Reads routine descriptions and definition points from a source file generated by Inform 7 (auto.inf).

This will probably break when the layout of auto.inf changes.

ReadSourceSymbols ( string sourceFile ) : void

Loads routine names and definition points from an Inform source file that wasn't generated by Inform 7 (for example, the .i6 template layer).

ResetStats ( ) : void

Clears the performance information that has been collected so far.

SetDefaultDescriptions ( ) : void

Naively assigns descriptions to routines based on their names.

Приватные методы

Метод Описание
BillCurrentRoutine ( long elapsedCycles, System.TimeSpan elapsedTime ) : void
BumpHitCount ( ) : void
Enter ( uint address, long cycles ) : void

Records that the VM is entering a routine.

GetDefaultDescription ( string routine ) : string
GetRoutineRecord ( ) : ProfiledRoutine
Leave ( long cycles ) : void

Records that the VM is leaving the most recently entered routine.

ReadAddress ( Stream debugFile ) : uint
ReadLine ( Stream debugFile ) : SourceLine
ReadString ( Stream debugFile ) : string
SkipString ( Stream debugFile ) : bool
UpdateRecsFromSymbols ( ) : void

Описание методов

GetResults() публичный Метод

Gets the current set of profiler results.
public GetResults ( ) : FyreVM.Profiling.ProfiledRoutine[]
Результат FyreVM.Profiling.ProfiledRoutine[]

Profiler() публичный Метод

public Profiler ( ) : System
Результат System

ReadDebugSymbols() публичный Метод

Reads function names and addresses from a game debugging file.
public ReadDebugSymbols ( Stream gameFile, Stream debugFile ) : void
gameFile Stream The game being profiled.
debugFile Stream The Inform debugging file (gameinfo.dbg).
Результат void

ReadDescriptions() публичный Метод

Reads routine descriptions and definition points from a source file generated by Inform 7 (auto.inf).
This will probably break when the layout of auto.inf changes.
public ReadDescriptions ( string autoInfFile ) : void
autoInfFile string
Результат void

ReadSourceSymbols() публичный Метод

Loads routine names and definition points from an Inform source file that wasn't generated by Inform 7 (for example, the .i6 template layer).
public ReadSourceSymbols ( string sourceFile ) : void
sourceFile string
Результат void

ResetStats() публичный Метод

Clears the performance information that has been collected so far.
public ResetStats ( ) : void
Результат void

SetDefaultDescriptions() публичный Метод

Naively assigns descriptions to routines based on their names.
public SetDefaultDescriptions ( ) : void
Результат void