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
Preparing FPC 3.2.4, poin...
by
AlexTP
[
Today
at 09:25:09 am]
Artificial intelligence
by
MarkMLl
[
Today
at 09:20:25 am]
IContainers
by
cdbc
[
Today
at 08:36:34 am]
SQL update statement and ...
by
Zvoni
[
Today
at 07:58:38 am]
Using Tesseract without i...
by
Thaddy
[
Today
at 07:41:06 am]
Spaces are allowed here ?
by
Paolo
[
Today
at 07:08:34 am]
UK's Online Safety Act
by
dbannon
[
Today
at 06:15:18 am]
D2Bridge Framework for La...
by
egsuh
[
Today
at 05:00:44 am]
GR32 GR_Bindings problem
by
staratel20
[
Today
at 12:50:04 am]
built IDE for qt5
by
HotShoe
[
Today
at 12:37:22 am]
Nested declarations insid...
by
Joanna from IRC
[
Today
at 12:29:42 am]
Install OOPsie
by
johnsg
[January 19, 2025, 10:48:06 pm]
مشكلة في التقارير
by
nouzi
[January 19, 2025, 08:32:56 pm]
Lazarus Release Candidate...
by
baldzhang
[January 19, 2025, 05:53:07 pm]
const declaration
by
marcov
[January 19, 2025, 04:51:08 pm]
A Tip for beginners
by
Thaddy
[January 19, 2025, 03:07:02 pm]
Migrate vb.net to Lazarus...
by
gidesa
[January 19, 2025, 02:50:02 pm]
Amigo programming languag...
by
maurog
[January 19, 2025, 02:47:35 pm]
Component text property i...
by
Josh
[January 19, 2025, 02:27:53 pm]
Sorting stringgrid
by
PeterX
[January 19, 2025, 01:38:34 pm]
Reading/writing Excel fil...
by
dmytro
[January 19, 2025, 12:59:32 pm]
[Solved] Width of Project...
by
Wilko500
[January 19, 2025, 12:42:21 pm]
[SOLVED] Component event ...
by
n7800
[January 19, 2025, 07:04:52 am]
FPC 3.2.4, naming suggest...
by
dbannon
[January 19, 2025, 06:31:58 am]
What is a status of fpGUI...
by
Fred vS
[January 19, 2025, 05:52:24 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Using getrusage on OSX (+linux) (Read 1045 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