C# 클래스 FyreVM.Profiling.Profiler

Tracks and analyzes a game's performance.
파일 보기 프로젝트 열기: ChicagoDave/Zifmia

공개 메소드들

메소드 설명
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