-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key Error: mode when running either austin2speedscope or austin2pprof on windows 10 #16
Comments
@skewballfox thanks for reporting this. Can I double-check with you that by
you mean that the data you have collected from austin contains the |
I've tested with |
[Here's the line responsible for it in Austin](
https://github.com/P403n1x87/austin/blob/b48d980f6f3d0808d9221ee611a9c3094e02bb50/src/logging.c#L201
)
…On Sun, Mar 19, 2023, 5:08 PM Gabriele N. Tornetta ***@***.***> wrote:
I've tested with austin -P python -c "from time import sleep; sleep(2)"
within a virtual environment and I was able to convert the data to the
speedscope format. I look forward to your confirmation that indeed #
mode: wall is contained in your sample file.
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG7UDR7RQBBDACDMJIKEQ5DW457WXANCNFSM6AAAAAAV67LHLM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
hey, sorry for the delay. This is the metadata from the file in question
|
@skewballfox thanks for confirming that indeed all the metadata is available from the sample file. If the file in question does not contain any sensitive data, would you perhaps be able to share it so that I can do some local testing on it? |
I wish I could but while the project doesn't contain any sensitive information, it's export controlled. plus, it's pretty gargantuan about a Gigabyte in size. |
Not sure if this is related: austin2pprof does not seem to be generating legal pprof output on either Mac or Linux -- at least Perfetto.dev can't read the generated pprof file. Trivial small example program, original Austin output, and austin2pprof generated pprof file attached. Screenshot of failure from perfetto.dev below. Command line: Note: speedscope output via austin2speedscope works fine. |
@emeryberger thanks for reporting this. I have opened the attached pprof file with pprof and (besides the expected complaint about the missing binary) the data seems to load fine Getting a raw view of the protobuf data shows the full structure
I suspect that the Perfetto UI is perhaps expecting a somewhat different structure, considering that it seems to be mainly a tool for traces (the error also hints at ftrace: |
Description
upon running either
austin2speedcope.exe input.austin output.speedscope
oraustin2pprof.exe input.austin output.pprof
I run into the following error:Steps to Reproduce
austin -P .\.venv\Scripts\python.exe launch.py 1>wall_time.austin
Expected behavior: [What you expect to happen]
conversion happens and new file is created
Actual behavior: [What actually happens]
command errors out with a stacktrace ending in the above message
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
this is on windows 10
Additional Information
this seems related to the Metadata class inside stats.py.
mode is one of the metadata fields listed at the top of the austin output file (in the output from the command in the steps to reproduce the line reads
# mode: wall
The text was updated successfully, but these errors were encountered: