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
would multi threading hel...
by
LeP
[
Today
at 03:21:08 pm]
Strange Error when I use ...
by
TYDQ
[
Today
at 03:14:50 pm]
FPCupDeluxe unable to bui...
by
Martin_fr
[
Today
at 02:57:15 pm]
Lazarus in Windows allowe...
by
LeP
[
Today
at 02:53:24 pm]
Perlin Map 3D
by
dergen
[
Today
at 02:20:25 pm]
Rolling releases Lazarus[...
by
marcov
[
Today
at 01:50:56 pm]
TRichMemo install shows "...
by
vinntec
[
Today
at 01:36:50 pm]
Lazarus Bugfix Release 4...
by
Martin_fr
[
Today
at 08:12:20 am]
Register global hotkey
by
Thaddy
[
Today
at 06:28:54 am]
X11Libre, finally and for...
by
Fred vS
[January 21, 2026, 10:20:53 pm]
Difference in formatting ...
by
Bart
[January 21, 2026, 09:49:01 pm]
What's wrong with my appl...
by
bourbon
[January 21, 2026, 09:04:40 pm]
How to observe the value ...
by
nouzi
[January 21, 2026, 06:26:13 pm]
Anti "churning" in solita...
by
TBMan
[January 21, 2026, 04:30:05 pm]
Lazarus for Windows on aa...
by
msintle
[January 21, 2026, 03:11:13 pm]
Perlin Noise Map With BGR...
by
Boleeman
[January 21, 2026, 01:36:13 pm]
Strange Mail from memo.mi...
by
Thaddy
[January 21, 2026, 01:27:19 pm]
[Solved] Lazreport. Sorti...
by
Petrus Vorster
[January 21, 2026, 11:39:09 am]
Regarding the issue of de...
by
Martin_fr
[January 21, 2026, 11:16:29 am]
[Windows] UTF8 encoding w...
by
Thaddy
[January 21, 2026, 10:42:15 am]
Pleas help, Synapse / Ind...
by
patyit
[January 21, 2026, 10:25:29 am]
Default, Manual Initializ...
by
Okoba
[January 21, 2026, 09:17:22 am]
Cannot see unit text - ed...
by
lorenzo
[January 21, 2026, 04:05:13 am]
AdvancedHTTPServer: A Go-...
by
egsuh
[January 21, 2026, 01:44:33 am]
ThemeServices.OnThemeChan...
by
440bx
[January 21, 2026, 12:16:35 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Using getrusage on OSX (+linux) (Read 1333 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