Git Product home page Git Product logo

burn's People

Contributors

spiermar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

burn's Issues

How to use with pprof

In the readme it says you can use this with pprof. We're using gperftools, and the output files can be rendered in various formats (e.g. traces) by using pprof. However I can't find documentation on

  1. Which output format to use on pprof.
  2. Which format to select for burn convert.

The examples seem to only concern perf.

Sample in README was broken by d3.fetch moving from callbacks to Promises

If I run the example in the README:

<head>
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3-flamegraph.css">
</head>
<body>
  <div id="chart"></div>
  <script type="text/javascript" src="https://d3js.org/d3.v7.js"></script>
  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3-flamegraph.min.js"></script>
  <script type="text/javascript">
  var chart = flamegraph()
    .width(960);

  d3.json("data.json", function(error, data) {
    if (error) return console.warn(error);
    d3.select("#chart")
      .datum(data)
      .call(chart);
  });
  </script>
</body>

The callback isn't called, even though loading data.json succeeded with HTTP 200. This is because d3 moved from callbacks to returning a promise in d3 v5.

Parsing perf_events data fails due to an empy stack in perf.out

Hi, just ran into this while trying out burn:

It seems that perf can in some cases produce empty stacks like this in perf script output:

         [... previous stack ...]
         8478b48f58948fb [unknown] ([unknown])

nginx 13444 12560.036548:     649918 cycles:ppp:

nginx 13444 12560.036810:     654301 cycles:ppp:
            7fffad2da0f9 __tcp_push_pending_frames ([kernel.kallsyms])
            7fffad2c677b tcp_push ([kernel.kallsyms])
            7fffad2ca098 tcp_sendmsg_locked ([kernel.kallsyms])
            [...]

When trying to convert this (with the latest prebuilt binary), burn fails with a panic:

user@92cdb21822ae:~$ ./burn convert --html --output=/data/flame.html out.perf
panic: Invalid format.

goroutine 1 [running]:
github.com/spiermar/burn/convert.ParsePerf(0xa476e0, 0xc42000c120, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/mspier/Workspace/go/src/github.com/spiermar/burn/convert/perf.go:104 +0xa80
github.com/spiermar/burn/cmd.glob..func1(0xa794c0, 0xc42006fd70, 0x1, 0x3)
	/Users/mspier/Workspace/go/src/github.com/spiermar/burn/cmd/convert.go:80 +0x2a6
github.com/spf13/cobra.(*Command).execute(0xa794c0, 0xc42006fcb0, 0x3, 0x3, 0xa794c0, 0xc42006fcb0)
	/Users/mspier/Workspace/go/src/github.com/spf13/cobra/command.go:653 +0x299
github.com/spf13/cobra.(*Command).ExecuteC(0xa79700, 0xc4200160b8, 0x0, 0xc42008a2d0)
	/Users/mspier/Workspace/go/src/github.com/spf13/cobra/command.go:728 +0x339
github.com/spf13/cobra.(*Command).Execute(0xa79700, 0x0, 0x0)
	/Users/mspier/Workspace/go/src/github.com/spf13/cobra/command.go:687 +0x2b
github.com/spiermar/burn/cmd.Execute()
	/Users/mspier/Workspace/go/src/github.com/spiermar/burn/cmd/root.go:79 +0x31
main.main()
	/Users/mspier/Workspace/go/src/github.com/spiermar/burn/main.go:20 +0x20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.