a8d3a3cf创建于 2024年6月1日历史提交
文件最后提交记录最后更新时间
Add a demo C# program 4 年前
Add some example programs These programs are meant to be used with magic trace to quickly test out whether or not it's working properly. Through varying degrees of trickery, they can all be run via shebang. All except the node.js example pipe bytes from /dev/zero to /dev/null. The node.js example sends HTTP requests to itself. There's no principled reason why it doesn't do the same thing, I just found HTTP easier deal with in node than files. The java demo is just called `java` instead of `demo.java` because giving it a proper file extension breaks the shebang. The go program doesn't have symbols, even in perf. I don't know why. 4 年前
demo.c: call cos twice, use c99 4 年前
Remove newly-useless argument to clang++4 年前
Create a smaller Go demo I want to trace its full execution, instead of attaching to a subset of it. The constant loop is not very interesting compared to a hello world, because its control flow is too simple. 4 年前
Add some example programs These programs are meant to be used with magic trace to quickly test out whether or not it's working properly. Through varying degrees of trickery, they can all be run via shebang. All except the node.js example pipe bytes from /dev/zero to /dev/null. The node.js example sends HTTP requests to itself. There's no principled reason why it doesn't do the same thing, I just found HTTP easier deal with in node than files. The java demo is just called `java` instead of `demo.java` because giving it a proper file extension breaks the shebang. The go program doesn't have symbols, even in perf. I don't know why. 4 年前
Add some example programs These programs are meant to be used with magic trace to quickly test out whether or not it's working properly. Through varying degrees of trickery, they can all be run via shebang. All except the node.js example pipe bytes from /dev/zero to /dev/null. The node.js example sends HTTP requests to itself. There's no principled reason why it doesn't do the same thing, I just found HTTP easier deal with in node than files. The java demo is just called `java` instead of `demo.java` because giving it a proper file extension breaks the shebang. The go program doesn't have symbols, even in perf. I don't know why. 4 年前
Add support for jcmd Compiler.perfmap Even though the perf "spec" for jit languages defines the perf map syntax, the jcmd Compiler.perfmap insists on prepending 0x to the addresses. In addition, there's now a way for the jvm to generate the perfmap automatically on exit, making `magic-trace run -multi-thread -snapshot-size 1M -- ./demo/java` return something useful without messing around with perfmap generation. Add these options to the ./demo/java file Signed-off-by: Theodor Thornhill <theo@thornhill.no> 1 年前
README.md

Demonstrations

This directory contains programs that demonstrate how to use magic trace with different languages.

To play around with one, run it (e.g. ./demo.js) and use magic-trace to create a trace.