mingrammer
017c9f9cbc
Fix typos
2019-03-18 02:52:26 +09:00
Lomanic
41e774419f
Merge pull request #643 from wcc526/master
...
Update process_linux.go for Add process ConnectionsMax
2019-02-23 21:23:09 +01:00
wcc526
462e0f6c2f
Update process_linux.go for Add process ConnectionsMax
2019-02-23 18:55:31 +08:00
shirou
457f04671d
[process] move PageFaultsStat to process.go
2019-01-13 17:27:42 +09:00
shirou
98c84ed30a
[process]: move HWM to MemoryInfo
...
at least FreeBSD and Darwin has HWM.
2019-01-13 17:23:01 +09:00
shirou
a33a26bd97
Merge pull request #567 from tagirb/grouped_memorymaps
...
implement grouped memorymaps output
2019-01-13 17:17:11 +09:00
shirou
48b37fa45e
Merge pull request #616 from nefeli/linux_page_faults
...
[process][linux] Export process page fault info
2019-01-13 16:56:41 +09:00
chi-chi weng
ec5a8b2a50
Add VmHWM
...
VmHWM: Peak resident set size ("high water mark").
http://man7.org/linux/man-pages/man5/proc.5.html
2019-01-04 17:31:43 +08:00
David Naylor
414c76f159
[process][linux] Export process page fault info
...
Add a function for retrieving page fault counts from /proc/[pid]/stat on
Linux.
2018-12-13 16:19:40 -08:00
Lomanic
878e0a701b
Fix #596 Implement process.Background and process.Foreground functions
2018-11-08 20:52:01 +01:00
Lomanic
e38ea9f318
[process] Don't lose context in ProcessesWithContext() on Windows and Linux
2018-09-01 16:18:32 +02:00
Tagir Bakirov
29b3c3719b
fix slice indices
2018-08-14 09:12:09 +02:00
Tagir Bakirov
47166d6a81
implement grouped memorymaps output
2018-08-08 09:37:17 +02:00
Aleksandr Balezin
e2c79a1af7
use full cmdline in case of proc renaming
2018-06-23 17:17:39 +03:00
Michal Rostecki
91ac1d66ac
process: Check for error objects
2018-06-21 16:53:53 +02:00
shirou
145dca90f7
change to use CommandContext.
2018-03-31 21:35:53 +09:00
shirou
26a4a2f995
[process]: move ErrorNoChildren to platform independent.
2018-03-24 15:56:32 +09:00
Ihde
44ef466a5a
Resolve issue #492 to reduce CPU overhead associated with fillFromStat
2018-02-20 13:13:53 -05:00
shirou
6a368fb7cd
[process]: add ProcessesWithContext.
2018-01-11 11:47:13 +09:00
shirou
cd61c36c4f
Merge branch 'master' into feature/add_context_support
2018-01-09 11:18:25 +09:00
Nick Kirsch
482ca3af6d
Parses the tgid field, which is the thread group id (aka user-space process id) on Linux. Returns error on other platforms.
2018-01-04 11:30:39 -08:00
shirou
4c73494c78
Add WithContext functions.
2017-12-31 15:25:49 +09:00
tycho garen
08a382b207
make process.processes function public
2017-11-05 20:40:33 -05:00
Leonid Podolny
7ee4a4c6ff
Fix Threads() signature to better match python original
2017-10-04 15:38:01 -04:00
Leonid Podolny
7ad3836ad3
Implement Threads() for Linux
2017-10-04 15:38:01 -04:00
shirou
a452de7c73
Merge pull request #346 from phemmer/rlimit-current
...
add current values to rlimit retrieval
2017-08-31 11:58:10 +09:00
Shirou WAKAYAMA
3aa2ffab12
[process] linux: fix NumFD type inconversion.
2017-08-04 03:09:34 +00:00
Conor Branagan
7b058c7436
Just look at filenames for linux NumFDs call.
...
In NumFDs we don't care about the contents of the fields, just how many
there are.
2017-08-02 13:49:55 -04:00
WAKAYAMA Shirou
5329f8ba79
[process] fix Document of CreatTime seconds -> milliseconds
2017-07-26 22:33:15 +09:00
Sean Chittenden
635b971c0e
Move from the syscall
package to the golang.org/x/sys/{unix,windows}
2017-06-02 13:51:00 -07:00
Patrick Hemmer
60c32eb847
add current values to rlimit retrieval
2017-06-01 16:38:44 -04:00
Jorick Caberio
c432d48337
fix truncated process name of linux
2017-01-17 09:38:25 +08:00
Vyacheslav Kuznetsov
4de4e17f06
Added limit constants. Implemented function to parse process limits from /proc.
2017-01-11 00:04:05 +04:00
Thomas Hipp
68ad8d603c
process: make ClockTicks
arch-independent
...
The value for `ClockTicks` is defined as `100` by the Linux kernel for
all currently supported architectures in Go. Therefore, there is no need
to define this constant for each architecture separately.
This fixes #260 .
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2016-09-17 18:06:07 +02:00
Thomas Hipp
eb4a57117f
process: determine page sizes via function
...
Instead of hard-coding the page size for linux systems, use Go's
`Getpagesize` function.
This resolves #258 .
Signed-off-by: Thomas Hipp <thipp@suse.de>
2016-09-16 09:17:34 +02:00
Nick Cabatoff
28640e5d73
fix incorrect names for fields in proc/pid/io
2016-07-24 11:19:59 -04:00
Shirou WAKAYAMA
860f5a0803
[process]linux: update comment to show godoc.org.
2016-04-20 13:26:05 +09:00
Shirou WAKAYAMA
bd1b04fe67
[process]linux: add document to Status.
2016-04-20 12:59:18 +09:00
Shannon Wynter
f99d495462
Run goimports before committing...
2016-04-18 17:28:47 +10:00
Shannon Wynter
a4387d0c92
emulate original behaviour
2016-04-18 14:38:24 +10:00
Shannon Wynter
c903f14189
Remove the requirement to use lsof by using the information provided in status to get the parent pid
2016-04-18 11:15:15 +10:00
Shirou WAKAYAMA
613a8a90e1
fixed by golint.
2016-04-01 21:34:39 +09:00
Shirou WAKAYAMA
15a7edb712
[process]linux: linux process status change to "R" not "Running" see #173
2016-03-27 21:54:02 +09:00
Shirou WAKAYAMA
4bb84648bf
JSON representation is renamed to fit Google JSON style, camelCase.
2016-03-23 10:52:46 +09:00
Shirou WAKAYAMA
46ddd57c72
process has NetIOCounters and IOCounters.
2016-03-22 23:23:08 +09:00
Shirou WAKAYAMA
ea152ea901
[BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
2016-03-22 23:09:12 +09:00
raviparimi
be2dab5a40
Provide correct length for slice creation.
...
- Creating a slice of length numFDs and later appending elements to it
results in a slice whose first numFDs elements are all nil. It is
sufficient to create a slice of zero length since we are appending
elements to it.
- The current allocation will make ret a slice of length 0. What's
needed is a slice of length len(ofs).
2016-03-03 15:10:23 -08:00
Alexander Inozemtsev
f4902fae49
Properly close opened file
2016-03-02 18:19:52 +03:00
shirou
1ab11f7afd
Merge pull request #167 from cgilling/cmdline_slice
...
process: add CmdlineSlice function for linux + freebsd
2016-02-29 21:57:08 +09:00
Chris Gilling
a3bbd9e3cd
process: change linux NewProcess to only stat /proc/[pid]
...
Before it was doing a fillFromStatus() call which was much slower
and none of the information was needed, except by the Name() func
which now will call fillFromStatus() if p.name is not set.
2016-02-28 06:47:37 -08:00