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
Form Positioning (Run & D...
by
Tony Stone
[
Today
at 03:28:03 am]
StrToInt not raising an e...
by
ALLIGATOR
[
Today
at 03:17:25 am]
Unselect all rows in stri...
by
Jonny
[
Today
at 01:07:15 am]
[solved] Issues was wrong...
by
What I can do
[
Today
at 01:03:09 am]
Specialisation doesn't se...
by
nixbody
[
Today
at 12:38:49 am]
User Domain
by
Remy Lebeau
[
Today
at 12:20:36 am]
Treeview: full-width back...
by
wp
[
Today
at 12:06:20 am]
visasession
by
Laksen
[
Today
at 12:03:45 am]
UADE Library
by
Gigatron
[February 06, 2025, 11:41:14 pm]
Please explain what is Po...
by
PascalDragon
[February 06, 2025, 11:03:56 pm]
Error, the IF function do...
by
wp
[February 06, 2025, 10:30:54 pm]
"set of": order of elemen...
by
PascalDragon
[February 06, 2025, 10:14:14 pm]
Compile App Error
by
eldonfsr
[February 06, 2025, 10:03:23 pm]
ellipse ? off topic
by
d2010
[February 06, 2025, 09:10:42 pm]
using RunCommand to wrap ...
by
MarkMLl
[February 06, 2025, 08:54:16 pm]
Telegram bots API Wrapper
by
Renat.Su
[February 06, 2025, 07:51:49 pm]
Custom self drawn compone...
by
wp
[February 06, 2025, 06:29:29 pm]
working on multiple proje...
by
TRon
[February 06, 2025, 05:39:14 pm]
Problema como barra de ro...
by
mfdzerohour
[February 06, 2025, 05:14:28 pm]
image processing library
by
JernejL
[February 06, 2025, 04:27:07 pm]
Reading and writing AVIF ...
by
Tomxe
[February 06, 2025, 02:34:13 pm]
Pointer and/xor set failu...
by
BrunoK
[February 06, 2025, 12:41:51 pm]
Dialogs and Windows PE
by
d2010
[February 06, 2025, 11:52:49 am]
What is more (memory) eff...
by
DragoRosso
[February 06, 2025, 11:51:34 am]
Crosshair following Point...
by
wp
[February 06, 2025, 11:21:28 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Using getrusage on OSX (+linux) (Read 1073 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