Created
December 15, 2016 08:26
-
-
Save matheusd/9af7d7f69745fce10d1b44bcb277bdb3 to your computer and use it in GitHub Desktop.
Exemplo de programa instrumentado com a UnPerfCounter.pas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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