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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Probably more a math prob...
by
zxandris
[
Today
at 09:05:33 pm]
Understanding Constraints
by
TRon
[
Today
at 08:55:17 pm]
Resolving procedure symbo...
by
Thaddy
[
Today
at 08:52:57 pm]
Copying records with dyna...
by
McDoob
[
Today
at 08:24:20 pm]
C-library problem with in...
by
TRon
[
Today
at 07:55:45 pm]
Painting on a control - 3...
by
majolika
[
Today
at 07:03:54 pm]
[AI][Machine Learning] Te...
by
nouzi
[
Today
at 06:50:09 pm]
FPHTTPClient and SSL not ...
by
TRon
[
Today
at 06:35:11 pm]
New to internet programmi...
by
sunjob
[
Today
at 06:34:36 pm]
TDBEdit uneditable
by
LemonParty
[
Today
at 03:55:58 pm]
Access violation
by
smallfreak
[
Today
at 03:52:19 pm]
SPARC64: compiling Lazaru...
by
Fred vS
[
Today
at 02:54:09 pm]
Result not being set in c...
by
Martin_fr
[
Today
at 12:44:59 pm]
Lazarus Release Candidate...
by
Martin_fr
[
Today
at 12:34:17 pm]
The Silver Coder on YouTu...
by
d2010
[
Today
at 10:24:31 am]
UK's Online Safety Act
by
MarkMLl
[
Today
at 09:54:50 am]
Guide Lines Behavior
by
majolika
[
Today
at 06:11:12 am]
Trying to save an Animate...
by
zxandris
[
Today
at 04:58:36 am]
Trying to Write, Readable...
by
zxandris
[
Today
at 04:05:35 am]
LCL Web Native with D2Bri...
by
talisjonatas
[
Today
at 01:58:42 am]
constref and assembler x6...
by
ASerge
[January 24, 2025, 11:50:46 pm]
Synedit wordwrap
by
Martin_fr
[January 24, 2025, 10:26:36 pm]
application->terminate ma...
by
MarkMLl
[January 24, 2025, 09:42:14 pm]
Lazarus Bugfix Release 3....
by
Martin_fr
[January 24, 2025, 09:38:45 pm]
Drawing with psInsidefram...
by
Jonny
[January 24, 2025, 08:20:18 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Using getrusage on OSX (+linux) (Read 1051 times)
Grahame Grieve
Sr. Member
Posts: 369
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