Skip to content
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

Collect timeout feature #222

Closed
wants to merge 11 commits into from

Conversation

DylanC
Copy link

@DylanC DylanC commented Feb 13, 2020

Putting this up early to have eyes on it. Node Clinic will have a new feature to set a timed delay before we collect the data.

Relevant PR:
clinicjs/node-clinic#208

For 0x the delay won't hold up the process but rather filter the data depending on the delay value passed in. Open to feedback and further changes/suggestions.

Copy link
Contributor

@goto-bus-stop goto-bus-stop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two nits. we should also add a test but we can discuss that in slack a bit later.

cmd.js Outdated Show resolved Hide resolved
lib/v8-log-to-ticks.js Outdated Show resolved Hide resolved
@goto-bus-stop
Copy link
Contributor

(This functionality is tested in clinicjs/node-clinic-flame#107. Flame is a bit better set up for testing atm 😬 )

@DylanC we need a line of documentation for this option in docs/api.md. I think there's also another call to the v8LogToTicks() function in index.js that needs to be updated for the new call signature.

@DylanC DylanC marked this pull request as ready for review February 25, 2020 14:49
@DylanC DylanC requested review from mcollina and removed request for davidmarkclements February 25, 2020 16:22
@DylanC
Copy link
Author

DylanC commented Mar 2, 2020

@goto-bus-stop - I have both of those updates pushed into the branch.

Copy link
Collaborator

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs unit tests

@DylanC
Copy link
Author

DylanC commented Mar 20, 2020

@goto-bus-stop - Should I wait until we figure out the tests for Flame first? Seems testing this would have the same issue?

@ErisDS
Copy link
Contributor

ErisDS commented Aug 17, 2021

Wondering if there's anyone around to help me revive this PR?

I have a rebased version of this running here with added usage info + a minor tweak:

https://github.com/TryGhost/0x

It is working & useful - it sort of solves #129 as although you can't explicitly say when to start profiling, you can skip the startup process of a script and only measure e.g. when firing requests.

I did look at adding the requested unit tests, but as far as I can tell the code that this affects in v8-log-to-ticks is currently untested, meaning adding a test for this behaviour is a fairly big task, and I don't really know where to start.

I don't really want to run a fork, ideally I'd like to get this populated through flame & clinic as was the intention of the original author.

@mcollina
Copy link
Collaborator

would you like to do a fresh PR?

@ErisDS ErisDS mentioned this pull request Aug 17, 2021
@ErisDS
Copy link
Contributor

ErisDS commented Aug 17, 2021

Done: #239 :)

@ErisDS
Copy link
Contributor

ErisDS commented Aug 23, 2021

Heads up there's nothing in here that wasn't in #239, and there for this can be closed 😺

@mcollina mcollina closed this Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants