Recent

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

Pascal

  • Hero Member
  • *****
  • Posts: 832
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

Imants

  • Full Member
  • ***
  • Posts: 181
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: 3655
  • 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

Pascal

  • Hero Member
  • *****
  • Posts: 832
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

Pascal

  • Hero Member
  • *****
  • Posts: 832
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

zoltanleo

  • Full Member
  • ***
  • Posts: 192
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 »
Win7 Ultim x64/Deb 10 amd64 GTK3:
Lazarus x32 2.1(r.62009); FPC 3.3.1 (r.43150),
IBX by -Rik-; FB 3.0.4

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

Pascal

  • Hero Member
  • *****
  • Posts: 832
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

zoltanleo

  • Full Member
  • ***
  • Posts: 192
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
Win7 Ultim x64/Deb 10 amd64 GTK3:
Lazarus x32 2.1(r.62009); FPC 3.3.1 (r.43150),
IBX by -Rik-; FB 3.0.4

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

molly

  • Hero Member
  • *****
  • Posts: 2345
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: 832
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

zoltanleo

  • Full Member
  • ***
  • Posts: 192
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 »
Win7 Ultim x64/Deb 10 amd64 GTK3:
Lazarus x32 2.1(r.62009); FPC 3.3.1 (r.43150),
IBX by -Rik-; FB 3.0.4

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

Pascal

  • Hero Member
  • *****
  • Posts: 832
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

howardpc

  • Hero Member
  • *****
  • Posts: 3203
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: 832
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

zoltanleo

  • Full Member
  • ***
  • Posts: 192
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  :)
Win7 Ultim x64/Deb 10 amd64 GTK3:
Lazarus x32 2.1(r.62009); FPC 3.3.1 (r.43150),
IBX by -Rik-; FB 3.0.4

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