Comments (5)
-g option is used to specify PIDs and COMMs in top mode.
$ guider top -g PID1, PID2, COMM
If you want to distinguish each node process,
What do you think about using -e NG option to show NAMESPACE and CGROUP info.
$ guider top -g node -e NG
==========================================================================================================================================================
Process ( PID/PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| SID | USER | FD | LifeTime| Parent |
----------------------------------------------------------------------------------------------------------------------------------------------------------
node (2385/2384/ 1/C 0)| 99( 33/ 65/ -)| 6( 1/ 0/ 0/ 0)| 0( -/ -/ 0)| 1941| root| 64| 00:01:27| sh(2384)|
NAMESPACE | net:4026531992, uts:4026532191, ipc:4026532192, pid:4026532193, user:4026531837, mnt:4026532190, cgroup:4026531835
CGROUP | cpu:/test
----------------------------------------------------------------------------------------------------------------------------------------------------------
from guider.
Thanks @LiPeace for the quick response. Will try specifying the NG option. Does guider differ in providing details when installed outside the container(inside host) compared to inside the container. Do we have any difference in the way in collects data (inside or outside the conatiner). Also does guider support java applications
from guider.
@sattishv
the NG option means a mix of N option and G option.
N option means showing namespace, G option means showing cgroups for each process.
all processes inside container can't see all processes, directories and files, and specific resources in host.
it's about linux namespace not guider's implementation.
Guider supports java for function tracing and monitoring, but it requires some preparations to see java symbols for target process.
from guider.
from guider.
please check below instructions about function profiling for various language.
- Monitor native and JIT-compiled function calls for specific threads
* Qt:
- run the target with "QV4_PROFILE_WRITE_PERF_MAP=1" environment variable (version >= 5.6.0)
* Node:
- run the target with "--perf-basic-prof" option (version >= 0.11.13, map file growth endlessly)
- run the target with "--perf-basic-prof-only-functions" option (version >= 4.4.0)
* Java:
1. install perf-map-agent
2. run the target with "-XX:+PreserveFramePointer -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints" option
3. set environment with "export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" command
4. create a map file with "perf-map-agent/bin/create-java-perf-map.sh PID" command
* Mono:
- run the target with "--jitmap" option
* .NET Core:
- run the target with "COMPlus_PerfMapEnabled=1" environment variable
# ./guider utop -g [TID|COMM] -q JITSYM -H
from guider.
Related Issues (20)
- Error at drawing graph ([Error] Fail to find Detailed Statistics in guider.out) HOT 3
- Subsecond cpu top feature HOT 1
- Checking status for data recording HOT 17
- Fix exception handling for the import of essential modules HOT 3
- Split the grown script into loadable modules HOT 6
- Fix specifications of exit codes for the Guider launcher HOT 1
- Choose an error code according to a wrong depth type HOT 1
- Choose an error code according to a failed priority setting HOT 1
- Increase the usage of augmented assignment statements HOT 13
- Addition of a build system generator HOT 4
- Improve build support for newer Python versions HOT 1
- Fix error indication for a successful program analysis HOT 7
- Export tracing data in tabular form HOT 8
- Export tracing records in rows instead of multi-line structures HOT 49
- Increase selection of data output streams HOT 6
- Provide numerical data instead of texts in output streams HOT 2
- Support the configuration of a shell environment before tracing a passed command HOT 10
- Reconsider “import gc” HOT 1
- Checking repetition for dictionary entry “statx” HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guider.