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

Total time for Node.js time profiles is consistently less than 10 seconds. #272

Open
nolanmar511 opened this issue Aug 13, 2018 · 2 comments
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. type: question Request for information or clarification. Not an issue.

Comments

@nolanmar511
Copy link
Contributor

nolanmar511 commented Aug 13, 2018

Looking through profiles I've collected with the Node.js agent, I've noticed that profiles generally have less than 10 seconds of time.

For example, these profiles only have a duration 8.95s on average:
image

I would expect that time profiles generally have a duration of 10s when profiling something doing minimal work, and for profiles to be slightly longer when the code is very busy.

@aalexand
Copy link
Contributor

What does the duration field contain for such profiles?

@nolanmar511
Copy link
Contributor Author

The duration field for slightly short profiles is 10s.

Perhaps the function which starts the profiler still has to do some work after it returns but before collecting samples?

@JustinBeckwith JustinBeckwith added the type: question Request for information or clarification. Not an issue. label Sep 13, 2018
@google-cloud-label-sync google-cloud-label-sync bot added the api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. label Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants