fxt

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

fxt

A library for creating Fuschia Tracing Format (FXT) files

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KernelObjectID

type KernelObjectID uint64

type Thread

type Thread struct {
	ProcessId KernelObjectID
	ThreadId  KernelObjectID
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(filePath string) (*Writer, error)

func (*Writer) AddAsyncBeginEvent added in v0.2.0

func (w *Writer) AddAsyncBeginEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64, asyncCorrelationId uint64) error

func (*Writer) AddAsyncEndEvent added in v0.2.0

func (w *Writer) AddAsyncEndEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64, asyncCorrelationId uint64) error

func (*Writer) AddAsyncInstantEvent added in v0.2.0

func (w *Writer) AddAsyncInstantEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64, asyncCorrelationId uint64) error

func (*Writer) AddCounterEvent added in v0.2.0

func (w *Writer) AddCounterEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64, arguments map[string]interface{}, counterId uint64) error

func (*Writer) AddDurationBeginEvent added in v0.2.0

func (w *Writer) AddDurationBeginEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64) error

func (*Writer) AddDurationCompleteEvent added in v0.2.0

func (w *Writer) AddDurationCompleteEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, beginTimestamp uint64, endTimestamp uint64) error

func (*Writer) AddDurationEndEvent added in v0.2.0

func (w *Writer) AddDurationEndEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64) error

func (*Writer) AddFlowBeginEvent added in v0.2.0

func (w *Writer) AddFlowBeginEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64, flowCorrelationId uint64) error

func (*Writer) AddFlowEndEvent added in v0.2.0

func (w *Writer) AddFlowEndEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64, flowCorrelationId uint64) error

func (*Writer) AddFlowStepEvent added in v0.2.0

func (w *Writer) AddFlowStepEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64, flowCorrelationId uint64) error

func (*Writer) AddInitializationRecord

func (w *Writer) AddInitializationRecord(numTicksPerSecond uint64) error

func (*Writer) AddInstantEvent added in v0.2.0

func (w *Writer) AddInstantEvent(category string, name string, processId KernelObjectID, threadId KernelObjectID, timestamp uint64) error

func (*Writer) AddProviderEventRecord

func (w *Writer) AddProviderEventRecord(providerId uint32, eventType providerEventType) error

func (*Writer) AddProviderInfoRecord

func (w *Writer) AddProviderInfoRecord(providerId uint32, providerName string) error

func (*Writer) AddProviderSectionRecord

func (w *Writer) AddProviderSectionRecord(providerId uint32) error

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) SetProcessName added in v0.2.0

func (w *Writer) SetProcessName(processId KernelObjectID, name string) error

func (*Writer) SetThreadName added in v0.2.0

func (w *Writer) SetThreadName(processId KernelObjectID, threadId KernelObjectID, name string) error

Jump to

Keyboard shortcuts

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