Documentation ¶
Index ¶
- func ForkRunExample(functionNumber int) int
- func FreeCPointer(p unsafe.Pointer)
- func GetCPIBase() float32
- func GetL3Cap() (numWays, numSets, lineBytes int)
- func GetLowestBits(n int) int
- func GetMemAccessLatency() (l1lat, l2lat, l3lat, memLat int)
- func IntListDifferent(old, new []int) bool
- func MallocCPidList(pidList []int) unsafe.Pointer
- func NumBits(n int) int
- func ParseCTFTrace(dir string) (map[int][]uint64, error)
- type PinBinaryReader
- type PinBinaryRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForkRunExample ¶
func FreeCPointer ¶
func GetLowestBits ¶
func GetMemAccessLatency ¶
func GetMemAccessLatency() (l1lat, l2lat, l3lat, memLat int)
获取本机CPU的访存延迟。单位为周期
func IntListDifferent ¶
func MallocCPidList ¶
将Go语言的pid列表转换为C的pid_t类型的列表 使用完毕后务必free,否则将会引发内存泄漏
Types ¶
type PinBinaryReader ¶
type PinBinaryReader struct {
// contains filtered or unexported fields
}
func NewPinBinaryReader ¶
func NewPinBinaryReader(file string) (*PinBinaryReader, error)
func (*PinBinaryReader) AsyncRead ¶
func (p *PinBinaryReader) AsyncRead() <-chan *PinBinaryRecord
func (*PinBinaryReader) ReadAll ¶
func (p *PinBinaryReader) ReadAll() map[int][]uint64
type PinBinaryRecord ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.