-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add process thread stat to snapshot. #45
Add process thread stat to snapshot. #45
Conversation
* Only threadsCount involved. Signed-off-by: Pan Li <incarnation.p.lee@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #45 +/- ##
==========================================
- Coverage 86.71% 86.30% -0.41%
==========================================
Files 10 11 +1
Lines 286 314 +28
==========================================
+ Hits 248 271 +23
- Misses 30 32 +2
- Partials 8 11 +3
Continue to review full report at Codecov.
|
|
||
func sampleThreadsCount(pID int) int { | ||
filename := fmt.Sprintf("/proc/%d/status", pID) | ||
file, err := os.Open(filename) |
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.
G304: Potential file inclusion via variable
Reply with "@sonatype-lift help" for more info.
Reply with "@sonatype-lift ignore" to tell LiftBot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell LiftBot to leave out all the findings from this PR and from the status bar in Github.
When talking to LiftBot, you need to refresh the page to see its response. Click here to get to know more about LiftBot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
Signed-off-by: Pan Li <incarnation.p.lee@outlook.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Signed-off-by: Pan Li incarnation.p.lee@outlook.com