Recent

Author Topic: LazProfiler (beta)  (Read 38419 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
LazProfiler (beta)
« on: November 17, 2017, 08:28:56 am »
LazProfiler
One-Click-Profiling for Lazarus.

Wiki: http://wiki.freepascal.org/LazProfiler

It's available on GitHub. It also needs VirtualTreeView and EpikTimer.

You need FPC and Lazarus trunk versions to be able to install it!
As it needs generics and additional PascalParser funktionality (FPC) and new IDE addon functions (Lazarus)

Bug reports, suggestions and feature requests are welcome.
« Last Edit: November 21, 2017, 06:22:44 am by Pascal »
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Imants

  • Full Member
  • ***
  • Posts: 196
Re: LazProfiler (beta)
« Reply #1 on: November 18, 2017, 11:01:00 pm »
I do not think that this comand wil lever work for Linux users:

Code: Pascal  [Select][+][-]
  1. before_compile.cmd $(LazarusDir) $PkgDir(etpackage)epiktimer.pas
  2.  

Is this mandatory?

What it does?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: LazProfiler (beta)
« Reply #2 on: November 19, 2017, 12:33:38 am »
Maybe a link should be added here:
 http://wiki.lazarus.freepascal.org/Profiling

Do you know about FPProfiler? How does your profiler compare with it?
 http://wiki.lazarus.freepascal.org/FPProfiler
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: LazProfiler (beta)
« Reply #3 on: November 19, 2017, 07:54:05 am »
I do not think that this comand wil lever work for Linux users:

Code: Pascal  [Select][+][-]
  1. before_compile.cmd $(LazarusDir) $PkgDir(etpackage)epiktimer.pas
  2.  

Is this mandatory?

What it does?

It creates the resourcefile for the units used during profiling (runtime.lrs). They will be copied to the main directory and deleted after profiling.
The latest resource is included. So this is not needed. I will remove it from the options in the next version.

Many thanks for the hint.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: LazProfiler (beta)
« Reply #4 on: November 19, 2017, 07:56:22 am »
Maybe a link should be added here:
 http://wiki.lazarus.freepascal.org/Profiling

I will do so.

Do you know about FPProfiler? How does your profiler compare with it?
 http://wiki.lazarus.freepascal.org/FPProfiler

It runs with one click. So you do not have to worry about instrumenting und unistrumenting your code.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: LazProfiler (beta)
« Reply #5 on: November 19, 2017, 09:21:31 pm »
Саn't to install r56436
« Last Edit: November 19, 2017, 09:23:26 pm by zoltanleo »
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: LazProfiler (beta)
« Reply #6 on: November 20, 2017, 05:51:07 am »
Саn't to install r56436
What's the output of your message window? There you can see the compiler errors.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: LazProfiler (beta)
« Reply #7 on: November 20, 2017, 07:07:16 am »
What's the output of your message window? There you can see the compiler errors.
Code: Pascal  [Select][+][-]
  1. LazProfilerCore.pas(143,15) Error: Identifier not found "TList"

I suspect that the fpc version at me too old. Please, specify the minimum fpc version in requirements of installation
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: LazProfiler (beta)
« Reply #8 on: November 20, 2017, 07:21:26 am »
What's the output of your message window? There you can see the compiler errors.
Code: Pascal  [Select][+][-]
  1. LazProfilerCore.pas(143,15) Error: Identifier not found "TList"

I suspect that the fpc version at me too old. Please, specify the minimum fpc version in requirements of installation
You need FPC and Lazarus trunk versions to be able to install it!
As it needs generics and addition PascalParser funktionality (FPC) and new IDE addon functions (Lazarus)

Seeing your tagline @zoltanleo you are already using trunk so it would probably be more efficient to ask about revision number. Then again, TList is a standard class that exists... well... since the beginning of time. I suspect you have other errors listed before that error or perhaps have a faulty installation.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: LazProfiler (beta)
« Reply #9 on: November 20, 2017, 08:11:19 am »
@zoltanleo: Maybe you should update FPC and Lazarus to latest revisions and try again.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: LazProfiler (beta)
« Reply #10 on: November 20, 2017, 08:15:27 am »
Seeing your tagline @zoltanleo you are already using trunk so it would probably be more efficient to ask about revision number. Then again, TList is a standard class that exists... well... since the beginning of time. I suspect you have other errors listed before that error or perhaps have a faulty installation.
It is difficult for me to assume other reasons. At present I have trunk fpc and IDE versions also (see my profile). I tried to establish by subj and a traditional way, and by means of Onlinepackagemanager.

I will establish the last audits of the compiler and Lazarus and I will try again.

I have only one request, specify number of the minimum audit fpc after which profiler can be established with guarantee  ;)

@zoltanleo: Maybe you should update FPC and Lazarus to latest revisions and try again.
Thanks for council. I and will arrive
« Last Edit: November 20, 2017, 08:18:10 am by zoltanleo »
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: LazProfiler (beta)
« Reply #11 on: November 20, 2017, 08:24:26 am »
I have only one request, specify number of the minimum audit fpc after which profiler can be established with guarantee  ;)

For Lazarus this is 56254 .
For FPC you need at least 37235.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: LazProfiler (beta)
« Reply #12 on: November 20, 2017, 08:30:55 am »
@zoltanleo
The sources also mention the minimum trunk revision needed.
Make sure that the package's "Execute before" entry is blank.
I used the OPM to try to install LazProfiler, and compilation failed for me. I had to open the package options, go to the Compiler Commands page and remove the "Execute before" Command.

@Pascal
Thanks for this excellent tool! Already the beta looks very promising.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: LazProfiler (beta)
« Reply #13 on: November 20, 2017, 08:43:43 am »
@Pascal
Thanks for this excellent tool! Already the beta looks very promising.

Pleased to hear :D
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: LazProfiler (beta)
« Reply #14 on: November 20, 2017, 09:57:23 am »

For Lazarus this is 56254 .
For FPC you need at least 37235.

Thank U very much, friend  :)
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018