Forum > Packages and Libraries

LazProfiler - "File Not open"

(1/1)

Nicole:
hope, this is the correct place to post my question:

Just tried LazProfiler (Laz 3).

There was something strange:
It did not compile until I changed
TVirtualStringTree => TLazVirtualStringTree
for three or four times.

Then it integrated into the IDE as it is said here:
https://wiki.freepascal.org/LazProfiler#Hints_in_source_code

I can click inside the IDE the checkbox "activate" from the tab configuration, but on every attempt to use the function, - I read "file no open".
This is on startup, this is on an attempt of checking the tab "result", this is on several other occasions.

My own project compiles fine and runs and can be closed.
However: Lazprofiler does not show me anything because "file not open".

The reset thing I have tried already.

What can I do?

yus:
Hello.
Try this fork.
https://github.com/seryal/LazProfiler

avra:

--- Quote from: yus on January 18, 2024, 07:44:49 pm ---Try this fork.
https://github.com/seryal/LazProfiler
--- End quote ---
If that one is really fixed and confirmed to work with latest official Lazarus, then it should replace the original one in OPM which seams to be abandoned...

yus:

--- Quote ---If that one is really fixed and confirmed to work with latest official Lazarus, then it should replace the original one in OPM which seams to be abandoned...
--- End quote ---
It's probably right for the maintainer to do this.
I have created a pull request to the main repository.

Nicole:
Laz Profiler the second... another fail.

I could install the above version, these are the good news.
The bad news are, - I hated it, this is why:

- there is another component needed, et... (what was the name?). I had to get it by hand, because the profiler did not install it as "dependent" alike other component

- the profiler messes: it writes itself twice into the uses list for several times, nobody knows why and when and when not. I had to remove this manually.

- it messes into the code. There was a code looking fine after the profiler included himself, but the compiler wined. So I had to put this methods into commentary to run it

- finally after much waiting time and re-starts of the IDE, the profiler worked.
However it did not show me anything useful. As I checked "results" there was the name of my project, checked, but no information.

As the profiler wrote into my code and I got no warning it will do this, - I did not backup my code.
As I had to change that much, put something into commentary, editing the uses list.... I killed all of it including the profiler and reset the whole VM to its recent version.

A pity!
I bet the profiler is a great work and only the last brush is missing to make it robust.

Navigation

[0] Message Index

Go to full version