topidchart

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessInfo

type ProcessInfo struct {
	Pid  int
	Name string
	Ucpu float32
	Scpu float32
	Mem  uint64 // in KB
}

ProcessInfo is process statistics.

type Record

type Record struct {
	Timestamp int64
	Processes []ProcessInfo
	Snapshot  string
}

Record is sent by client periodically including target processes info, an optional snapshot such as process tree, and timestamp.

type SessionRequest

type SessionRequest struct {
	Tag       string
	SysInfo   SysInfo
	ExtraInfo string
}

SessionRequest is the message sent by client. Return SessionResponse. Client should send one or more Record after SessionResponse is received.

type SessionResponse

type SessionResponse struct {
	ChartURL string
}

SessionResponse is the message replied by server.

type SysInfo

type SysInfo struct {
	CPUInfo    string
	KernelInfo string
}

SysInfo is part of SessionRequest used to initiate a collecting session.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL