Skip to content

Instantly share code, notes, and snippets.

@matheusd
Created December 15, 2016 08:26
Show Gist options
  • Save matheusd/9af7d7f69745fce10d1b44bcb277bdb3 to your computer and use it in GitHub Desktop.
Save matheusd/9af7d7f69745fce10d1b44bcb277bdb3 to your computer and use it in GitHub Desktop.
Exemplo de programa instrumentado com a UnPerfCounter.pas
program sistema;
uses
unPerfCounter,
Forms,
Unit1 in 'Unit1.pas' {Form1},
//...
Unit1000 in 'Unit1000.pas' {Form1000};
{$R *.RES}
begin
masterPerf.currentToConsole('inicio do programa');
Application.Initialize;
masterPerf.currentToConsole('apos app.initialize');
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
Application.CreateForm(TForm3, Form3);
masterPerf.currentToConsole('apos criacao dos forms');
procedimento1();
masterPerf.currentToConsole('apos proc1');
procedimento2();
masterPerf.currentToConsole('apos proc2');
//...
masterPerf.currentToConsole('vai comecar execucao');
Application.Run;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment