Recent

Author Topic: Using Heaptrace with Linux  (Read 1955 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 16813
  • Ceterum censeo Trump esse delendam
Re: Using Heaptrace with Linux
« Reply #15 on: February 20, 2025, 04:07:19 pm »
WTF is this discussion about? Curt should shut up and listen.
Why is it wrong to write that? It is the honest truth.

Actually, anybody that does not read manuals do not deserve answers.
 >:D >:(
Curt
« Last Edit: February 20, 2025, 04:09:24 pm by Thaddy »
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

BrunoK

  • Hero Member
  • *****
  • Posts: 697
  • Retired programmer
Re: Using Heaptrace with Linux
« Reply #16 on: February 20, 2025, 04:44:35 pm »
WTF is this discussion about? Curt should shut up and listen.
Why is it wrong to write that? It is the honest truth.

Actually, anybody that does not read manuals do not deserve answers.
 >:D >:(
Curt
no comprendo ...

MarkMLl

  • Hero Member
  • *****
  • Posts: 8377
Re: Using Heaptrace with Linux
« Reply #17 on: February 20, 2025, 05:01:36 pm »
It's just Thaddy being objectionable.

I find this sort of recurrent behaviour troubling, particularly when the community of Pascal users really does need to demonstrate that they're not all truculent old gits.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

PascalDragon

  • Hero Member
  • *****
  • Posts: 5940
  • Compiler Developer
Re: Using Heaptrace with Linux
« Reply #18 on: February 20, 2025, 09:00:17 pm »
cmem (and cthreads ?) is only a thing on Unix, probably does not even compile on Windows ? It makes a big difference with multithreaded code (I benchmark stuff like that). Not significant in an all single thread code (but not tested by me).

cmem also work on Windows. It links against the msvcrt there.

cdbc

  • Hero Member
  • *****
  • Posts: 2105
    • http://www.cdbc.dk
Re: Using Heaptrace with Linux
« Reply #19 on: February 20, 2025, 09:05:41 pm »
Hi
Thanks Sven, that's really good to know  :)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99

MarkMLl

  • Hero Member
  • *****
  • Posts: 8377
Re: Using Heaptrace with Linux
« Reply #20 on: February 20, 2025, 09:08:34 pm »
cmem also work on Windows. It links against the msvcrt there.

Thanks for that (and also thanks for not shooting my observations down in flames, since some of the stuff I'm doing is probably somewhat out on a limb :-)

I've not really touched Windows for 15 years or so, but could probably do with taking another look at it at some point. I'm sure that I come across as a committed "unix head", but in actual fact I have considerable respect for the underlying NT-based architecture... and do remember that at one time you did some FPC stuff targeting it.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

PascalDragon

  • Hero Member
  • *****
  • Posts: 5940
  • Compiler Developer
Re: Using Heaptrace with Linux
« Reply #21 on: February 20, 2025, 09:53:47 pm »
I've not really touched Windows for 15 years or so, but could probably do with taking another look at it at some point. I'm sure that I come across as a committed "unix head", but in actual fact I have considerable respect for the underlying NT-based architecture... and do remember that at one time you did some FPC stuff targeting it.

You mean target NativeNT? ;) Currently only available for 32-bit however.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8377
Re: Using Heaptrace with Linux
« Reply #22 on: February 20, 2025, 09:59:28 pm »
You mean target NativeNT? ;) Currently only available for 32-bit however.

Yup :-) Of course, all this 64-bit business is just a fad...

More seriously, I'm a big fan of only using as much architectural complexity as is necessary. I've got a long-term (i.e. likely to outlive me :-) project trying to resurrect a decent segmented architecture using an FPGA: with segment size and count tuned to the job in hand and not wasting resources.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dbannon

  • Hero Member
  • *****
  • Posts: 3319
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Using Heaptrace with Linux
« Reply #23 on: February 22, 2025, 12:04:46 am »

cmem also work on Windows. It links against the msvcrt there.

OK, thanks PD. Does it provide the same useful performance increase on Windows ?  Windows is not my safe place ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 607
Re: Using Heaptrace with Linux
« Reply #24 on: February 22, 2025, 04:04:17 am »
WTF is this discussion about? Curt should shut up and listen.
Why is it wrong to write that? It is the honest truth.

Actually, anybody that does not read manuals do not deserve answers.
 >:D >:(
Curt

Indeed!  I think I've been bringing out the best you have to offer for over a decade now Thaddy, and it's always a pleasure.   Have a nice day!   

Afterthought:  don't you have that emoticon of the little guy with smoke coming out its ears?  That would been a good addition to the other two!
« Last Edit: February 22, 2025, 04:14:34 am by Curt Carpenter »

cdbc

  • Hero Member
  • *****
  • Posts: 2105
    • http://www.cdbc.dk
Re: Using Heaptrace with Linux
« Reply #25 on: February 22, 2025, 07:53:25 am »
Hi Curt
In this forum we aim to please, so here's one for @Thaddy  :D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 607
Re: Using Heaptrace with Linux
« Reply #26 on: February 22, 2025, 04:04:16 pm »
That's the one.

n7800

  • Sr. Member
  • ****
  • Posts: 284
Re: Using Heaptrace with Linux
« Reply #27 on: February 22, 2025, 09:03:14 pm »
There is a note on the wiki about the order of units. Perhaps you will learn something useful, or, on the contrary, correct the article:

https://wiki.freepascal.org/CMem

 

TinyPortal © 2005-2018