C# Class WikiFunctions.Profiler

Provides basic performance profiling
Datei anzeigen Open project: reedy/AutoWikiBrowser

Public Methods

Method Description
AddLog ( string s ) : void

Adds a line to the log

Flush ( ) : void

Flushes profiling log on disk

Profile ( string message ) : void

Outputs time difference between previous time mark and now to the profiling log

Profiler ( ) : System.IO

Profiler ( string filename, bool append ) : System.IO

Creates a profiler object

Start ( string message ) : void

Starts measuring time

Method Details

AddLog() public method

Adds a line to the log
public AddLog ( string s ) : void
s string
return void

Flush() public method

Flushes profiling log on disk
public Flush ( ) : void
return void

Profile() public method

Outputs time difference between previous time mark and now to the profiling log
public Profile ( string message ) : void
message string description of the time interval
return void

Profiler() public method

public Profiler ( ) : System.IO
return System.IO

Profiler() public method

Creates a profiler object
public Profiler ( string filename, bool append ) : System.IO
filename string Name of file to save profiling log to
append bool True if the file should not be overwritten
return System.IO

Start() public method

Starts measuring time
public Start ( string message ) : void
message string a message to associate with these measure
return void