How to understand the ruby-prof result which the sum of sub-process time occupied more than 100%
Summary
the profiling of a request, the sum percent of the cost time of all children of a function is more than 100%. as following:
the three children of the red process are: 51.46%, 35.51%, 21.88%
so the sum of them are 108.85%, which is greater then 100%. How to understand it ?
Steps to reproduce
- go to Admin area of your project.
- go to Monitor->Requests Profiles. record the
X-Profile-Token
- make a post request to 'http://localhost:3001/root/gitlab-test/-/branches' using postman
- refresh the Monitor->Requests page. and click the profiling result link
- see the profiling result.
Example Project
gitlab-test