timeline2html

command
v0.0.0-...-33ae38e Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

example

first add these lines to your main.go

package main

import (
    "github.com/google/slowjam/pkg/stacklog"
    "github.com/pkg/profile"
)

func main() {
		p := profile.Start(profile.TraceProfile, profile.NoShutdownHook)
		defer p.Stop()
		s, err := stacklog.Start(stacklog.Config{Path: "stack.log", Poll: 50 * time.Millisecond})
		if err != nil {
			panic("unable to log stacks")
		}
		defer s.Stop()
}

after runing your code. there will be a stack.log generated.

convert stack.log to html

  • install timeline2html
go get -u github.com/google/slowjam/cmd/timeline2html
  • run timeline2html
./timeline2html ./stack.log

this will generate two files slowjan_full.html and slowjam_simple.html

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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