C# Class FyreVM.Profiling.Profiler

Tracks and analyzes a game's performance.
Afficher le fichier Open project: ChicagoDave/Zifmia

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

GetResults() public méthode

Gets the current set of profiler results.
public GetResults ( ) : FyreVM.Profiling.ProfiledRoutine[]
Résultat FyreVM.Profiling.ProfiledRoutine[]

Profiler() public méthode

public Profiler ( ) : System
Résultat System

ReadDebugSymbols() public méthode

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).
Résultat void

ReadDescriptions() public méthode

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
Résultat void

ReadSourceSymbols() public méthode

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
Résultat void

ResetStats() public méthode

Clears the performance information that has been collected so far.
public ResetStats ( ) : void
Résultat void

SetDefaultDescriptions() public méthode

Naively assigns descriptions to routines based on their names.
public SetDefaultDescriptions ( ) : void
Résultat void