Recent

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

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #45 on: September 24, 2018, 03:10:24 pm »
Yes, I tried that replacement command, and it works fine on Linux (Mint).

Fine, thanks.

---

I am currently working on making selection and deselection of procedures/functions for instrumenting much easier,
so that you can disable complete units or classes.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

zamtmn

  • Sr. Member
  • ****
  • Posts: 382
Re: LazProfiler (beta)
« Reply #46 on: September 25, 2018, 11:41:15 am »
>>Anyone else getting a list index out of bounds?
Yes. I have "List index 82 out of bounds" with https://github.com/zamtmn/zcad project

zamtmn

  • Sr. Member
  • ****
  • Posts: 382
Re: LazProfiler (beta)
« Reply #47 on: September 25, 2018, 07:47:04 pm »

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #48 on: September 26, 2018, 05:49:53 am »
>>Anyone else getting a list index out of bounds?
Yes. I have "List index 82 out of bounds" with https://github.com/zamtmn/zcad project

Fine! I'll have a look.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #49 on: September 26, 2018, 05:50:38 am »
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #50 on: September 26, 2018, 09:58:37 am »
>>Anyone else getting a list index out of bounds?
Yes. I have "List index 82 out of bounds" with https://github.com/zamtmn/zcad project

Fine! I'll have a look.

Found the problem. I do not handle includes correctly! Working on fix...
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #51 on: September 30, 2018, 12:22:34 pm »
New release:
LazProfiler 0.2.0.0:
- new Result-TreeView
  - group by Unit
  - group by Object
- fixed include handling
- last group and sort column and order is saved to settings file now
- refactoring
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #52 on: October 01, 2018, 07:39:44 am »
>>Anyone else getting a list index out of bounds?
Yes. I have "List index 82 out of bounds" with https://github.com/zamtmn/zcad project
I used ZCad for testing. Many thanks. I already found some problems and corrected them in 0.2.0.0

One issue is still left: The packages are missing the LazProfiler runtime sources to build.
Just disable the package units for profiling and you are able to profile ZCad. To do this just
press the "Unit" header of the "Profiler Result" window and check/uncheck individual units.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

zamtmn

  • Sr. Member
  • ****
  • Posts: 382
Re: LazProfiler (beta)
« Reply #53 on: October 01, 2018, 11:08:39 am »
Thanks!
But I cannot use last version. Nothing happens, the results window is empty. Maybe it's a problem on my side.

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #54 on: October 01, 2018, 11:28:57 am »
I just updated the repo. New release will follow.
You are now able to profile ZCad. No additional steps necessary.
To be safe you should delete the settings file "cad/zcad.lazprofiler_setting" before starting Lazarus.
« Last Edit: October 01, 2018, 11:32:09 am by Pascal »
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #55 on: October 01, 2018, 11:54:34 am »
Just did a quick test:
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

zamtmn

  • Sr. Member
  • ****
  • Posts: 382
Re: LazProfiler (beta)
« Reply #56 on: October 01, 2018, 12:08:54 pm »
Yes, it works!

It remains to add some settings, call graph... and we'll bury AQTime))

Thanks!

Pascal

  • Hero Member
  • *****
  • Posts: 919
Re: LazProfiler (beta)
« Reply #57 on: October 01, 2018, 08:40:24 pm »
New release:
LazProfiler 0.2.1.0:
- fixed recursive directory scan
- do not scan include path
- ignore units belonging to packages
- fixed memory leak
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

Alextp

  • Hero Member
  • *****
  • Posts: 1179
    • UVviewsoft
Re: LazProfiler (beta)
« Reply #58 on: January 24, 2019, 02:11:29 pm »
FPC 3.3.1, Lazarus trunk. Project CudaText (see wiki link in my post).
On doing Profile i got such broken code of main form

EDITED
bug is fixed in the last release.
« Last Edit: January 24, 2019, 03:02:49 pm by Alextp »

Alextp

  • Hero Member
  • *****
  • Posts: 1179
    • UVviewsoft
Re: LazProfiler (beta)
« Reply #59 on: January 24, 2019, 02:19:10 pm »
And this.
I cannot profile my component ATSynEdit (wiki link in the post):
I added to file atsynedit.pas
Code: Pascal  [Select][+][-]
  1. procedure TATSynEdit.Paint;
  2. begin
  3.   if not HandleAllocated then exit;
  4.   // start-profiler
  5.   PaintEx(-1);
  6.   // stop-profiler
  7. end;
  8.  

but still don't see results for Paint in the Profiler output. I did run the demo_editor project.

 

TinyPortal © 2005-2018