spiermar / burn Goto Github PK
View Code? Open in Web Editor NEWburn :fire: is a CLI tool to convert performance profiles to hierarchical data structures that can be visualized as flame graphs
License: Apache License 2.0
burn :fire: is a CLI tool to convert performance profiles to hierarchical data structures that can be visualized as flame graphs
License: Apache License 2.0
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
The examples seem to only concern perf.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.