Compare commits

..

No commits in common. '6039e8f9d08b4798b5b61c3dad52cf368ac52424' and 'e2a7a9964d415dfac1ef26fbca87d33bf1fbd29e' have entirely different histories.

@ -260,7 +260,7 @@ Some code is ported from Ohai. Many thanks.
|children |x |x |x |x |x | |children |x |x |x |x |x |
|connections |x | |x |x | | |connections |x | |x |x | |
|is\_running | | | | | | |is\_running | | | | | |
|page\_faults |x | | | |x | |page\_faults |x | | | | |
### gopsutil Original Metrics ### gopsutil Original Metrics

@ -652,17 +652,7 @@ func (p *Process) MemoryInfoExWithContext(ctx context.Context) (*MemoryInfoExSta
} }
func (p *Process) PageFaultsWithContext(ctx context.Context) (*PageFaultsStat, error) { func (p *Process) PageFaultsWithContext(ctx context.Context) (*PageFaultsStat, error) {
mem, err := getMemoryInfo(p.Pid) return nil, common.ErrNotImplementedError
if err != nil {
return nil, err
}
ret := &PageFaultsStat{
// Since Windows does not distinguish between Major and Minor faults, all faults are treated as Major
MajorFaults: uint64(mem.PageFaultCount),
}
return ret, nil
} }
func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, error) { func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, error) {

Loading…
Cancel
Save