Recent

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

El Salvador

  • Full Member
  • ***
  • Posts: 134
Re: LazProfiler (beta)
« Reply #75 on: December 30, 2020, 05:00:10 pm »
Will LazProfiler be available with Lazarus 2.0.10 (FPC 3.2.0)?
It is broken. I comment all writeln to avoid error message in opening project, but TPascalScanner will raise 'No support for resources of type "%s"' (.lfm or .res).

PascalDragon

  • Hero Member
  • *****
  • Posts: 5462
  • Compiler Developer
Re: LazProfiler (beta)
« Reply #76 on: December 30, 2020, 05:40:58 pm »
You need to add po_IgnoreUnknownResource to the scanner's Options property.

El Salvador

  • Full Member
  • ***
  • Posts: 134
Re: LazProfiler (beta)
« Reply #77 on: December 30, 2020, 05:54:03 pm »
So, I need use FPC Trunk version, right? Thanks.

olly

  • New Member
  • *
  • Posts: 42
Re: LazProfiler (beta)
« Reply #78 on: May 06, 2021, 02:45:49 am »
PR here.
https://github.com/PascalRiekenberg/LazProfiler/pull/4

Works on trunk laz&fpc fine.

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: LazProfiler (beta)
« Reply #79 on: October 04, 2021, 08:12:28 am »
I came here from the FreePascal wiki LazProfiler page and I am being warned by the forum to not comment since there has been no post for 120 days...
But this is clearly the support page for LazProfiler, right?

So I would like to get some usage help:

1- Does this work on Lazarus 2.0.12 and FPC 3.2.0 in ARM Linux (Raspberry Pi)?
I see requirements like these:
FPC trunk (needs generics and additional PascalParser funktionality) or fixes_3_2
Lazarus trunk (revision 60719 and above) or fixes_2_0
But I am using tagged releases 2.0.12 and 3.2.0, will that not work?
Lazarus Help/About states revision 64944

2- Does LazProfiler work for a command line program (no GUI parts) running as a systemd service?

3- I need the profiler in order to find why my application when running idle still eats 10% CPU on Linux.
Can this be done? There is no memory usage problem just the fact that it sits at 10% CPU while just waiting.

The application is running a TCP service so a user can connect to it using  a custom application in order to configure its operations and download data. It is meant to be used as a systemd service but can be started manually on the command line as well.
The application is itself a scheduler for measurement operations configured to start at certain times and run with certain job data used by an attached instrument (by RS232).
When it is waiting for a client connection or the time to start a measurement operation it should idle at close to 0% CPU usage but in fact it uses 10% as shown by the top command.
I need to find where this happens....

The application was ported from Delphi 2007 into FPC using Lazarus.
--
Bo Berglund
Sweden

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: LazProfiler (beta)
« Reply #80 on: December 26, 2022, 11:36:09 pm »
Hi, this is still maintained?

On FPC 3.2.2 Lazarus 2.2.4 doesn't works, it gives an error when opening a lpi file or a form.

simone

  • Hero Member
  • *****
  • Posts: 573
Re: LazProfiler (beta)
« Reply #81 on: February 15, 2023, 03:37:24 pm »
I'm very interested in this project. In the absence of a response about its status, I try to wake up the thread. I hope the author, who is a forum member and did a great job, can reply. Thanks in advance.
Microsoft Windows 10 64 bit - Lazarus 3.0 FPC 3.2.2 x86_64-win64-win32/win64

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: LazProfiler (beta)
« Reply #82 on: February 15, 2023, 09:25:26 pm »
I'm very interested in this project. In the absence of a response about its status, I try to wake up the thread. I hope the author, who is a forum member and did a great job, can reply. Thanks in advance.

I contacted him by PM and he says that is open to new pull requests to fix the code.

Okoba

  • Hero Member
  • *****
  • Posts: 533
Re: LazProfiler (beta)
« Reply #83 on: March 19, 2023, 10:43:30 am »
@AlexTP do you still use LazProfiler? If yes, did you made some changes available to share?
I don't know if it will be useful for me or not, but I tried to make it work with latest of Lazarus, too many errors, WriteLn and other problems.

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: LazProfiler (beta)
« Reply #84 on: March 19, 2023, 10:50:16 am »
I was not able to use LazProfiler (was not able to measure function times), and did not make changes.

Okoba

  • Hero Member
  • *****
  • Posts: 533
Re: LazProfiler (beta)
« Reply #85 on: March 19, 2023, 10:51:19 am »
Thank you. Do you use any profiler for CudaText?

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: LazProfiler (beta)
« Reply #86 on: March 19, 2023, 11:12:42 am »
I do not; the optimizations of CudaText is done by looking where app 'hangs' on handling huge documents. I use 'Pause execution' and see 'call stack'.

Okoba

  • Hero Member
  • *****
  • Posts: 533
Re: LazProfiler (beta)
« Reply #87 on: March 19, 2023, 11:17:50 am »
Pause execution?

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: LazProfiler (beta)
« Reply #88 on: March 19, 2023, 12:23:52 pm »
IDE has the "Pause" button on toolbar, near "Run" button.

Okoba

  • Hero Member
  • *****
  • Posts: 533
Re: LazProfiler (beta)
« Reply #89 on: March 19, 2023, 01:30:13 pm »
Thank you so much.

 

TinyPortal © 2005-2018