Documentation
¶
Index ¶
- func BenchBasicMemInfo() []benchutil.Bench
- func BenchCPUInfo(n int) []benchutil.Bench
- func BenchMemInfo() []benchutil.Bench
- func BenchMessage(l int) []benchutil.Bench
- func BenchRedditAccount() []benchutil.Bench
- type AccountData
- type BasicMemInfo
- type CPU
- type CPUInfo
- type MemInfo
- type Message
- type RedditAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchBasicMemInfo ¶
BenchBasicMemInfo runs the BasicMemInfo benches for Marshal/Unmarshal.
func BenchCPUInfo ¶
BenchCPUInfo runs the CPUInfo benches for Marshal/Unmarshal.
func BenchMemInfo ¶
BenchMemInfo runs the MemInfo benches for Marshal/Unmarshal.
func BenchMessage ¶
BenchMessage runs the MemInfo benches for Marshal/Unmarshal.
func BenchRedditAccount ¶
BenchRedditAccount runs the MemInfo benches for Marshal/Unmarshal.
Types ¶
type AccountData ¶
type AccountData struct {
CommentKarma int64
HasMail bool
HasModMail bool
ID string
InboxCount int64
IsFriend bool
IsGold bool
LinkKarma int64
ModHash string
Name string
Over18 bool
}
func (*AccountData) Size ¶
func (d *AccountData) Size() (s uint64)
type BasicMemInfo ¶
type BasicMemInfo struct {
MemTotal int64
MemFree int64
MemAvailable int64
Buffers int64
Cached int64
SwapCached int64
SwapTotal int64
SwapFree int64
}
func PrepareBasicMemInfoData ¶
func PrepareBasicMemInfoData(data []shared.ShBasicMemInfo) []BasicMemInfo
PrepareBasicMemInfoData generates the gencode version of the data.
func (*BasicMemInfo) Size ¶
func (d *BasicMemInfo) Size() (s uint64)
type CPU ¶
type CPU struct {
Processor int16
VendorID string
CPUFamily string
Model string
ModelName string
Stepping string
Microcode string
CPUMHz float32
CacheSize string
PhysicalID int16
Siblings int16
CoreID int16
CPUCores int16
ApicID int16
InitialApicID int16
FPU string
FPUException string
CPUIDLevel string
WP string
Flags string
BogoMIPS float32
CLFlushSize string
CacheAlignment string
AddressSizes string
PowerManagement string
}
type CPUInfo ¶
type CPUInfo struct {
CPUs []CPU
}
func PrepareCPUInfoData ¶
PrepareCPUInfoData generates the gencode version of the data.
type MemInfo ¶
type MemInfo struct {
MemTotal int64
MemFree int64
MemAvailable int64
Buffers int64
Cached int64
SwapCached int64
Active int64
Inactive int64
ActiveAnon int64
InactiveAnon int64
ActiveFile int64
InactiveFile int64
Unevictable int64
Mlocked int64
SwapTotal int64
SwapFree int64
Dirty int64
Writeback int64
AnonPages int64
Mapped int64
Shmem int64
Slab int64
SReclaimable int64
SUnreclaim int64
KernelStack int64
NFSUnstable int64
Bounce int64
WritebackTmp int64
CommitLimit int64
VmallocTotal int64
VmallocUsed int64
VmallocChunk int64
HardwareCorrupted int64
AnonHugePages int64
HugePagesTotal int64
HugePagesFree int64
HugePagesRsvd int64
Hugepagesize int64
DirectMap4k int64
DirectMap2M int64
}
func PrepareMemInfoData ¶
PrepareMemInfoData generates the gencode version of the data.
type Message ¶
func PrepareMessageData ¶
PrepareMessageData generates the gencode version of the data.
type RedditAccount ¶
type RedditAccount struct {
ID string
Name string
Kind string
Data AccountData
}
func PrepareRedditAccountData ¶
func PrepareRedditAccountData(data []shared.ShRedditAccount) []RedditAccount
PrepareRedditAccountData generates the gencode version of the data.
func (*RedditAccount) Size ¶
func (d *RedditAccount) Size() (s uint64)
Click to show internal directories.
Click to hide internal directories.