-
Notifications
You must be signed in to change notification settings - Fork 12
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
[PARKED] Collect timeout feature #107
base: main
Are you sure you want to change the base?
Conversation
So 0x has this file that turns a v8 profiler log into an array of stack traces called The V8 profiler output has JSON objects with some data about each captured stack trace, and that is turned into our Here, the I think we can check that the stack trace was recorded after our timeout, and only do the We can look at how these # outputs an isolate-0x123456789-12345-v8.log file
node --prof examples/simple/index.js
# turn it into JSON
node --prof-process --preprocess -j isolate-*-v8.log > log.json (The 0x repository contains a file The "ticks": [
{
"tm": 23385,
"vm": 0,
"s": [
1, 11388029, 1, 12561680, 36939, 150, 36938, 989, 36936, 113, 36935, 80, 36934, 35, 36933, 90
]
},
...
] So each
So, we need to run the Does that clarify things a bit? |
@goto-bus-stop - A bit yeah. I'll look through the code base and make sense of how this is working regarding your comment. |
@goto-bus-stop - I have the parameter collectDelay filtering all the way down to my copy of 0x. I also have some sudo code inside |
@goto-bus-stop - Just investigating the CI failure. Its not due to linting but detect-port.test seems to be failing.
|
Tests fail locally for me with Normally we change the dependency in Flame's package.json to something like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good! One of the commits accidentally included .DS_Store
files, you can add that to the gitignore file in this PR.
Co-Authored-By: Renée Kooi <[email protected]>
@goto-bus-stop - I have one error left to resolve for this change. In test/cmd-collect-delay.test.js:
|
@DylanC that's actually expected output from a test that tests a failure case … would be good to silence that somehow 😅 Timing on CI can be a real bother. Maybe the 300ms extra delay was still not enough… You could try adding a few more 100ms of wiggle room, if that doesn't work we may have to think of something smarter. |
@goto-bus-stop - Not sure what happened but the CI seems to be stuck. 3 did pass after the last collect delay increase. |
hmm yeah i'm looking at it too…seems like there are two |
Some of the other tests became(?) flaky? Working on that in #108 |
This reverts commit e2e2132.
Feature will allow a timeout to be passed as argument. This argument will be used to delay execution of collect regarding the 0x lib.