Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
0e38be9e
Commit
0e38be9e
authored
Feb 04, 2018
by
Hisham Muhammad
Browse files
Darwin: expose LAST_PROCESSFIELD like the other platforms
parent
8e6c1e1b
Changes
1
Show whitespace changes
Inline
Side-by-side
darwin/Platform.c
View file @
0e38be9e
...
@@ -25,6 +25,11 @@ in the source distribution for its full text.
...
@@ -25,6 +25,11 @@ in the source distribution for its full text.
#include "CPUMeter.h"
#include "CPUMeter.h"
#include "BatteryMeter.h"
#include "BatteryMeter.h"
#include "DarwinProcess.h"
#include "DarwinProcess.h"
typedef enum DarwinProcessFields {
LAST_PROCESSFIELD = 100,
} DarwinProcessField;
}*/
}*/
#ifndef CLAMP
#ifndef CLAMP
...
@@ -97,7 +102,7 @@ ProcessFieldData Process_fields[] = {
...
@@ -97,7 +102,7 @@ ProcessFieldData Process_fields[] = {
[
TIME
]
=
{
.
name
=
"TIME"
,
.
title
=
" TIME+ "
,
.
description
=
"Total time the process has spent in user and system time"
,
.
flags
=
0
,
},
[
TIME
]
=
{
.
name
=
"TIME"
,
.
title
=
" TIME+ "
,
.
description
=
"Total time the process has spent in user and system time"
,
.
flags
=
0
,
},
[
NLWP
]
=
{
.
name
=
"NLWP"
,
.
title
=
"NLWP "
,
.
description
=
"Number of threads in the process"
,
.
flags
=
0
,
},
[
NLWP
]
=
{
.
name
=
"NLWP"
,
.
title
=
"NLWP "
,
.
description
=
"Number of threads in the process"
,
.
flags
=
0
,
},
[
TGID
]
=
{
.
name
=
"TGID"
,
.
title
=
" TGID "
,
.
description
=
"Thread group ID (i.e. process ID)"
,
.
flags
=
0
,
},
[
TGID
]
=
{
.
name
=
"TGID"
,
.
title
=
" TGID "
,
.
description
=
"Thread group ID (i.e. process ID)"
,
.
flags
=
0
,
},
[
100
]
=
{
.
name
=
"*** report bug! ***"
,
.
title
=
NULL
,
.
description
=
NULL
,
.
flags
=
0
,
},
[
LAST_PROCESSFIELD
]
=
{
.
name
=
"*** report bug! ***"
,
.
title
=
NULL
,
.
description
=
NULL
,
.
flags
=
0
,
},
};
};
MeterClass
*
Platform_meterTypes
[]
=
{
MeterClass
*
Platform_meterTypes
[]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment