Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
macOS / Mac OS X
»
Using getrusage on OSX (+linux)
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
The Future of FPC
by
creaothceann
[
Today
at 12:42:57 am]
[ANN] fpGUI Toolkit v2.0....
by
Graeme
[
Today
at 12:04:47 am]
Problem with Generic Cons...
by
Martin_fr
[February 09, 2026, 11:47:40 pm]
[ANN] PasBuild 1.2.0 Rele...
by
Graeme
[February 09, 2026, 11:34:03 pm]
[SOLVED] TFPGObjectList s...
by
Phoenix
[February 09, 2026, 11:18:33 pm]
Fixing Lazarus 4.4 IDE la...
by
Curt Carpenter
[February 09, 2026, 11:14:30 pm]
Debian removes FPC/Lazaru...
by
PascalDragon
[February 09, 2026, 09:58:13 pm]
Pre-Specialize Generic Fu...
by
PascalDragon
[February 09, 2026, 09:36:02 pm]
TRichMemo EM_FORMATRANGE ...
by
rvk
[February 09, 2026, 09:32:39 pm]
ListBox MeasureItem
by
TheCompanionCube
[February 09, 2026, 08:43:49 pm]
How to determine the unkn...
by
LV
[February 09, 2026, 08:34:15 pm]
it2play - IT/S3M module r...
by
Lulu
[February 09, 2026, 08:28:38 pm]
MVP made easier.
by
cdbc
[February 09, 2026, 08:27:52 pm]
Article “Lazarus vs Delph...
by
anse
[February 09, 2026, 07:41:13 pm]
ThorVG - test (lightweigh...
by
ALLIGATOR
[February 09, 2026, 07:30:21 pm]
Erasing the Canvas???
by
BubikolRamios
[February 09, 2026, 06:34:49 pm]
[SOLVED] Locate current r...
by
1HuntnMan
[February 09, 2026, 05:28:45 pm]
Dumping preprocessed work...
by
Чебурашка
[February 09, 2026, 04:27:58 pm]
[SOLVED] LPC & API
by
Petrus Vorster
[February 09, 2026, 03:01:32 pm]
Lazaris IDE v4.4 - extrem...
by
CM630
[February 09, 2026, 02:30:01 pm]
Keyboard hook - platform ...
by
n7800
[February 09, 2026, 01:49:51 pm]
[SOLVED] How to disable a...
by
Zvoni
[February 09, 2026, 11:50:40 am]
Free Pascal for a small e...
by
cdbc
[February 09, 2026, 11:35:12 am]
IStreams
by
cdbc
[February 09, 2026, 11:09:34 am]
I want to port my LDL pr...
by
JordanCpp
[February 09, 2026, 10:05:41 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Using getrusage on OSX (+linux) (Read 1344 times)
Grahame Grieve
Sr. Member
Posts: 379
Using getrusage on OSX (+linux)
«
on:
March 02, 2024, 04:32:31 am »
I'd like to call getrusage on OSX, per
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getrusage.2.html
. Ideally, the code will also work on linux.
There's no system routine for getrusage, just an obscure message here:
https://forum.lazarus.freepascal.org/index.php/topic,57914.msg431309.html#msg431309
about using syscall. I really don't know what that means.
Syscall on OSX is equally obscure...
https://www.pilotlogic.com/sitejoom/index.php/forum/macos-development/5155-using-syscall-and-manipulating-file-permissions-on-macos.html
- is that relevant?
How do I use either syscall or getrusage on OSX and linux? (or else, how do I get CPU usage by the process?)
thanks
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
macOS / Mac OS X
»
Using getrusage on OSX (+linux)
TinyPortal
© 2005-2018