Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.1
2 Name: guider
3 Version: 3.9.8993
4 Summary: Unified performance analyzer
5 Home-page: https://github.com/iipeace/guider
6 Author: Peace Lee
7 Author-email: [email protected]
8 License: GPL2
9 Download-URL: https://github.com/iipeace/guider/archive/master.zip
10 Keywords: guider,linux,analyzer,performance,profile,trace,kernel
11 Platform: UNKNOWN
12 Classifier: Environment :: Console
13 Classifier: Natural Language :: English
14 Classifier: Operating System :: Android
15 Classifier: Operating System :: MacOS
16 Classifier: Operating System :: Microsoft :: Windows
17 Classifier: Operating System :: POSIX :: Linux
18 Classifier: Programming Language :: Python
19 Classifier: Topic :: Software Development :: Debuggers
20 Classifier: Topic :: Software Development :: Embedded Systems
21 Classifier: Topic :: Software Development :: Testing
22 Classifier: Topic :: System :: Filesystems
23 Classifier: Topic :: System :: Monitoring
24 Classifier: Topic :: System :: Operating System Kernels :: Linux
25 Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
26 Description-Content-Type: text/markdown
27 License-File: LICENSE
28
29 [![Build Status](https://travis-ci.org/iipeace/guider.svg?branch=master)](https://travis-ci.org/iipeace/guider)
30 [![license](http://img.shields.io/badge/license-GNU-blue.svg)](https://raw.githubusercontent.com/iipeace/guider/master/LICENSE)
31 [![Coverity](https://scan.coverity.com/projects/15302/badge.svg)](https://scan.coverity.com/projects/iipeace-guider)
32 [![PyPI version](https://badge.fury.io/py/guider.svg)](https://badge.fury.io/py/guider)
33 [![Download guider](https://img.shields.io/sourceforge/dt/guider.svg)](https://sourceforge.net/projects/guider/files/latest/download)
34 [![Join the chat at https://gitter.im/guiderchat/Lobby](https://badges.gitter.im/guiderchat/Lobby.svg)](https://gitter.im/guiderchat/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
35
36 ![Guider_Logo_mini](https://user-images.githubusercontent.com/15862689/69008465-3062aa80-098e-11ea-8185-cfb8d7c4aafe.png)
37
38 Table of contents
39 =================
40 <!--ts-->
41 * [Guider](#Guider)
42 * [Output](#Output)
43 * [How to use](#How-to-use)
44 * [Build & Installation](#Build--Installation)
45 * [Kernel Configuration](#Kernel-Configuration)
46 * [Help](#Help)
47 <!--te-->
48
49 Guider
50 =======
51
52 Guider is a comprehensive performance analysis tool designed to meet all your system performance needs.
53 With features like monitoring, profiling, tracing, visualization, control, logging, networking, testing, and utilities,
54 Guider provides you with everything you need to measure, analyze, and verify your system's performance.
55
56 Some of the key features of Guider include:
57 1. Accurate measurements: Guider provides measurements in units of count, time (in microseconds), and size (in bytes) for precise results.
58 2. Comprehensive functionality: Guider offers a range of functions for analysis and experimentation.
59 3. Detailed reports: Guider provides in-depth reports with as much information as possible.
60 4. Browser-based visualization: Guider outputs visualizations in SVG format for easy viewing in a browser.
61 5. Easy to use: Guider is designed to be simple and straightforward, with no need for installation or setup.
62
63 Guider supports a wide range of platforms based on the Linux kernel,
64 including distros like Ubuntu, CentOS, and RHEL, as well as Android, ccOS, webOS, Tizen, and AGL.
65 Limited support is also available for Windows and MacOS.
66 In terms of architecture, Guider can work on x86, x64, ARM, AArch64, RISC-V.
67
68 Output
69 =======
70 $ python3 guider/guider.py top -a
71
72 [Top Info] [Time: 4588832.570] [Inter: 1.0] [Ctxt: 314463] [Life: +0/-0] [IRQ: 26606] [Core: 4] [Task: 498/625] [Load: 0/0/0] [RAM: 125.7G] [Swap: 4.0G]
73 [Cycle: 8.3G / Inst: 5.7G / IPC: 0.69 / CacheMiss : 13.7M(23%) / BrcMiss: 25.7M(1%) / Clk: 38.7G / MinFlt: 358 / MajFlt: 0]
74 ==========================================================================================================================================================
75 ID | CPU(Usr/Ker/Blk/IRQ)|MemAvl( Per/ User/Cache/Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDirt | Network |
76 ----------------------------------------------------------------------------------------------------------------------------------------------------------
77 Total | 10 %( 1 / 6 / 0 / 0 )|124649( 96/ 453/ 5690/1787)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 15889 | 4616 | 20 | 2K/0 |
78 ----------------------------------------------------------------------------------------------------------------------------------------------------------
79 CPU [##### ] MEM [### ] SWAP [ ]|
80 ----------------------------------------------------------------------------------------------------------------------------------------------------------
81 Core/0 |100 %(66 /34 / 0 / 0 )|###################################################################| powersave | 0-0 | 24 C | 2874 Mhz [1171-3515]|
82 Core/1 | 7 %( 0 / 6 / 0 / 0 )|#### | powersave | 0-1 | 22 C | 2307 Mhz [1171-3515]|
83 Core/2 | 0 %( 0 / 0 / 0 / 0 )| | powersave | 0-2 | 23 C | 2165 Mhz [1171-3515]|
84 Core/3 | 0 %( 0 / 0 / 0 / 0 )| | powersave | 0-3 | 22 C | 2170 Mhz [1171-3515]|
85 ==========================================================================================================================================================
86 Process ( PID/ PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| SID | USER | FD | LifeTime| Parent |
87 ----------------------------------------------------------------------------------------------------------------------------------------------------------
88 screen ( 2451/ 1/ 1/C 0)| 100( 66/ 34/ 0)| 11( 6/ 0/ 2/ 0)| 0( -/ -/ 0)| 2451|peacel| 64|53d:00:22| systemd(1)|
89 yes (1341199/1340350/ 1/C 0)| 99( 0/ 99/ 0)| 5( 0/ 0/ 0/ 0)| 0( -/ -/ 0)| 2452|peacel| 64| 00:00:03| vi(1340350)|
90 kworker/u80: (1341030/ 2/ 1/C 0)| 90( 0/ 90/ 0)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| root| 64| 00:15:46| kthreadd(2)|
91 kworker/u80: (1340705/ 2/ 1/C 0)| 26( 0/ 26/ 0)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| root| 64| 02:04:59| kthreadd(2)|
92 kworker/u80: (1340966/ 2/ 1/C 0)| 21( 0/ 21/ 0)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| root| 64| 00:20:56| kthreadd(2)|
93 [ TOTAL ]| 344.0( 72/ 271)|RSS: 1G / Swp: 0)| 0.0( -/ -/ 0)| Yld: -| Prmt: -| Task: 498|
94 ----------------------------------------------------------------------------------------------------------------------------------------------------------
95 [Z]bash ( 820918/ 820917/ 1/C 0)| 0( 0/ 0/ -)| 0( 0/ 0/ 0/ -)| 0( -/ -/ 0)| -| -| -| 3d:06:10| tmux: server(820917)|
96 ----------------------------------------------------------------------------------------------------------------------------------------------------------
97
98 >>>
99
100 $ python3 guider/guider.py top -R 5 -o
101 $ cat guider.out
102
103 [Top Summary Info]
104 ==========================================================================================================================================================
105 IDX | Interval | CPU | Avl/User/Cache | BlkRW | Blk | SWAP | NrPgRclm | NrFlt | NrCtx | NrIRQ | NrTask | Core | Network |
106 ==========================================================================================================================================================
107 1 | START - 497231.500 | 98 | 124442/962/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 631 | 10660 | 482/701 | 40 | 2K/156 |
108 2 | 497231.500 - 497232.520 | 98 | 124440/963/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 646 | 10506 | 482/701 | 40 | 1K/104 |
109 3 | 497232.520 - 497233.540 | 98 | 124440/964/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 741 | 10562 | 482/701 | 40 | 2K/104 |
110 4 | 497233.540 - 497234.570 | 98 | 124440/964/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 629 | 10489 | 482/701 | 40 | 1K/104 |
111 5 | 497234.570 - 497235.590 | 98 | 124440/964/3854 | 0/0 | 0 | 0 | 0/0 | 0 | 699 | 10602 | 482/701 | 40 | 2K/208 |
112 ----------------------------------------------------------------------------------------------------------------------------------------------------------
113
114 [Top CPU Info] (Unit: %)
115 ==========================================================================================================================================================
116 COMM ( PID / PPID / Nr / Pri)| Min/Avg/Max | 1 2 3 4 5
117 ==========================================================================================================================================================
118 [CPU] ( -/ -/ -/ -)| 98/98.0/98 | 98 98 98 98 98
119 ----------------------------------------------------------------------------------------------------------------------------------------------------------
120 FahCore_a8 ( 55469/ 55465/ 41/C 19)| 384/387.0/389| 384 3898 3898 3860 3883
121 ----------------------------------------------------------------------------------------------------------------------------------------------------------
122 guider ( 55767/ 9591/ 1/C 0)| 1/1.6/3 | 1 1 2 3 1
123 ----------------------------------------------------------------------------------------------------------------------------------------------------------
124
125 [Top RSS Info] (Unit: MB)
126 ==========================================================================================================================================================
127 COMM ( PID / PPID / Nr / Pri)| Max | 1 2 3 4 5
128 ==========================================================================================================================================================
129 [FREE/MIN] ( -/ -/ -/ -)|124440 | 124442 124440 124440 124440 124440
130 ----------------------------------------------------------------------------------------------------------------------------------------------------------
131 FahCore_a8 ( 55469/ 55465/ 41/C 19)| 548 | 548 548 548 548 548
132 ----------------------------------------------------------------------------------------------------------------------------------------------------------
133 guider ( 55767/ 9591/ 1/C 0)| 34 | 33 34 34 34 34
134 ----------------------------------------------------------------------------------------------------------------------------------------------------------
135
136 >>>
137
138 $ python3 guider/guider.py ttop
139
140 [Top Info] [Time: 194025.590] [Interval: 1.0] [Ctxt: 4995] [Life: +0/-0] [OOM: 0] [IRQ: 1879] [Core: 8] [Task: 333/1188] [Load: 3.1/1.9/0.9] [RAM: 62.8G]
141 ==========================================================================================================================================================
142 ID | CPU(Usr/Ker/Blk/IRQ)| Avl(Diff/ User/Cache/Kern)| Swap(Diff/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDrt | Network |
143 ----------------------------------------------------------------------------------------------------------------------------------------------------------
144 Total | 3 %( 1 / 0 /23 / 0 )|59874( -3/ 3110/15153/ 355)| 0( 0/ 0/ 0)| 0/0 | 0/5 | 0 | 2 | 313 | 1607 | 939290 | 0/0 |
145 ==========================================================================================================================================================
146 Thread ( TID/ PID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS(RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| Yld | Prmt | FD | LifeTime| Process |
147 ----------------------------------------------------------------------------------------------------------------------------------------------------------
148 guider ( 8160/ 8160/ 1/C 0)| 3( 2/ 0/ 0)| 66( 33/ 2/ 6/ 0)| 0( -/ -/ 0)| 1| 0|2048| 00:00:02| guider(8160)|
149 gnome-terminal- ( 4864/ 4864/ 4/C 0)| 1( 0/ 0/ -)| 627( 57/ 0/ 40/ 0)| 0( -/ -/ 0)| -| -| 128| 2d:05:52|gnome-terminal-(4864)|
150 Xorg ( 1525/ 1525/ 2/C 0)| 1( 0/ 0/ -)| 431( 84/ 0/ 48/ 0)| 0( -/ -/ 0)| -| -| 128| 2d:05:53| Xorg(1525)|
151 [ TOTAL ]| 5( 2/ 0)|RSS: 174M / Swp: 0)| 0.0( -/ -/ 0)| Yld: 1| Prmt: 0| Task: 3|
152 ----------------------------------------------------------------------------------------------------------------------------------------------------------
153 [D]kworker/u16:0 ( 7784/ 7784/ 1/C 0)| 0( 0/ 0/ -)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| -| -| 00:07:07| -|
154 [D]pool ( 8024/ 2450/ 13/C 0)| 0( 0/ 0/ -)| 1025( 82/ 1/ -/ -)| 0( -/ -/ 0)| -| -| -| 00:04:31| -|
155 [D]usb-storage ( 7825/ 7825/ 1/C 0)| 0( 0/ 0/ -)| 0( 0/ 0/ -/ -)| 0( -/ -/ 0)| -| -| -| 00:06:38| -|
156 ----------------------------------------------------------------------------------------------------------------------------------------------------------
157
158 >>>
159
160 # python3 guider/guider.py utop -g yes -H
161
162 [Top Usercall Info] [Time: 82094.260000] [Interval: 1.001784] [NrSamples: 955] [yes(7202): 28%(Usr/27%+Sys/0%)] [SampleTime: 0.000100]
163 ==========================================================================================================================================================
164 Usage | Function [Path]
165 ==========================================================================================================================================================
166 35.6% | _IO_file_xsputn@GLIBC_2.17 [/lib/libc-2.24.so]
167 100.0% | <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils] <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
168 ----------------------------------------------------------------------------------------------------------------------------------------------------------
169 17.8% | fputs_unlocked@GLIBC_2.17 [/lib/libc-2.24.so]
170 100.0% | <- ??[/usr/bin/yes.coreutils] <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
171 ----------------------------------------------------------------------------------------------------------------------------------------------------------
172 16.1% | __libc_start_main@GLIBC_2.17 [/lib/libc-2.24.so]
173 ----------------------------------------------------------------------------------------------------------------------------------------------------------
174 14.7% | memcpy@GLIBC_2.17 [/lib/libc-2.24.so]
175 100.0% | <- _IO_file_xsputn@GLIBC_2.17[/lib/libc-2.24.so] <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils]
176 <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
177 ----------------------------------------------------------------------------------------------------------------------------------------------------------
178 12.3% | strlen@GLIBC_2.17 [/lib/libc-2.24.so]
179 100.0% | <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils] <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
180 ----------------------------------------------------------------------------------------------------------------------------------------------------------
181 3.0% | _IO_file_write@GLIBC_2.17 [/lib/libc-2.24.so]
182 100.0% | <- ??[/lib/libc-2.24.so] <- _IO_do_write@GLIBC_2.17[/lib/libc-2.24.so] <- _IO_file_xsputn@GLIBC_2.17[/lib/libc-2.24.so]
183 <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils]
184 <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
185 ----------------------------------------------------------------------------------------------------------------------------------------------------------
186
187 >>>
188
189 # python3 guider/guider.py utop -g node -H -q JITSYM
190
191 [Top Usercall Info] [Time: 7249986.900] [Interval: 1.015] [Samples: 442] [SYS: 2%/120G] [node(1068318): 50%(U46%+S3%)/897M] [guider(1068338): 53%/256M] [Freq:
192 ==========================================================================================================================================================
193 Usage | Function [PATH] <Sample>
194 ==========================================================================================================================================================
195 18.6% | write@GLIBC_2.28 [/usr/lib/x86_64-linux-gnu/libpthread-2.31.so] <Cnt: 82>
196 100.0% | <- 0x13250[/usr/lib/x86_64-linux-gnu/libuv.so.1.0.0] <- uv_fs_write[/usr/lib/x86_64-linux-gnu/libuv.so.1.0.0]
197 <- 0x573090[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- JIT[JIT] <- LazyCompile:*writeSync fs.js:551[JIT]
198 <- Builtin:ArgumentsAdaptorTrampoline[JIT] <- LazyCompile:*writeOrBuffer _stream_writable.js:365[JIT]
199 <- LazyCompile:*log console.js:199[JIT] <- Builtin:ArgumentsAdaptorTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] <- JIT[JIT]
200 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
201 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
202 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
203 <- 0x630d40[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- JIT[JIT] <- LazyCompile:* /home/peacelee/test/test.js:1[JIT]
204 <- Builtin:InterpreterEntryTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] * 8 <- JIT[JIT]
205 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
206 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
207 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
208 <- 0x52cae0[/usr/lib/x86_64-linux-gnu/libnode.so.64]
209 <- node::LoadEnvironment(node::Environment*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
210 <- node::Start(v8::Isolate*, node::IsolateData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char
211 <- node::Start(int, char**)[/usr/lib/x86_64-linux-gnu/libnode.so.64] <Cnt: 82>
212 ----------------------------------------------------------------------------------------------------------------------------------------------------------
213 3.8% | LazyCompile:*writeOrBuffer _stream_writable.js:365 [JIT] <Cnt: 17>
214 64.7% | <- LazyCompile:*log console.js:199[JIT] <- Builtin:ArgumentsAdaptorTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] <- JIT[JIT]
215 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
216 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
217 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
218 <- 0x630d40[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- JIT[JIT] <- LazyCompile:* /home/peacelee/test/test.js:1[JIT]
219 <- Builtin:InterpreterEntryTrampoline[JIT] <- Builtin:JSEntryTrampoline[JIT] * 8 <- JIT[JIT]
220 <- 0xab0110[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- 0xab0720[/usr/lib/x86_64-linux-gnu/libnode.so.64]
221 <- v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::O
222 <- v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
223 <- 0x52cae0[/usr/lib/x86_64-linux-gnu/libnode.so.64]
224 <- node::LoadEnvironment(node::Environment*)[/usr/lib/x86_64-linux-gnu/libnode.so.64]
225 <- node::Start(v8::Isolate*, node::IsolateData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char
226 <- node::Start(int, char**)[/usr/lib/x86_64-linux-gnu/libnode.so.64] <- main[/usr/bin/node]
227 <- __libc_start_main@GLIBC_2.2.5[/usr/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 11>
228 ----------------------------------------------------------------------------------------------------------------------------------------------------------
229
230 >>>
231
232 # python3 guider/guider.py systop -g yes -H
233
234 [Top Syscall Info] [Time: 82043.230000] [Interval: 1.000940] [NrSamples: 634] [yes(7202): 5%(Usr/4%+Sys/0%)]
235 ==========================================================================================================================================================
236 Usage | Function [Count]
237 ==========================================================================================================================================================
238 100.0% | write [Cnt: 634, Tot: 0.830203, Avg: 0.001309, Max: 0.005875, Err: 0]
239 100.0% | <- ??[/lib/libc-2.24.so] <- _IO_file_write@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/lib/libc-2.24.so]
240 <- _IO_do_write@GLIBC_2.17[/lib/libc-2.24.so] <- _IO_file_xsputn@GLIBC_2.17[/lib/libc-2.24.so]
241 <- fputs_unlocked@GLIBC_2.17[/lib/libc-2.24.so] <- ??[/usr/bin/yes.coreutils]
242 <- __libc_start_main@GLIBC_2.17[/lib/libc-2.24.so]
243 ----------------------------------------------------------------------------------------------------------------------------------------------------------
244
245 >>>
246
247 # python3 guider/guider.py btop -g a.out -H
248
249 [Top Breakcall Info] [Time: 4542869.660] [Interval: 1.001] [NrSamples: 994] [a.out(1219772): 7%(Usr/0%+Sys/6%)] [guider(1219775): 97%]
250 ==========================================================================================================================================================
251 Usage | Function [PATH] <Interval>
252 ==========================================================================================================================================================
253 16.7% | __mempcpy_sse2_unaligned_erms [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 166, Avg: 0.005994, Min: 0.002999, Max: 0.012299]
254 100.0% | <- _IO_new_file_xsputn[/lib/x86_64-linux-gnu/libc-2.31.so] <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so]
255 <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
256 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
257 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
258 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
259 ----------------------------------------------------------------------------------------------------------------------------------------------------------
260 16.7% | _IO_new_file_xsputn [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 166, Avg: 0.005997, Min: 0.002988, Max: 0.012302]
261 100.0% | <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so] <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
262 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
263 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
264 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
265 ----------------------------------------------------------------------------------------------------------------------------------------------------------
266 11.2% | __strchrnul_sse2 [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 111, Avg: 0.008974, Min: 0.006034, Max: 0.012381]
267 100.0% | <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so] <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
268 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
269 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
270 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
271 ----------------------------------------------------------------------------------------------------------------------------------------------------------
272 5.5% | close@GLIBC_2.4 [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 55, Avg: 0.017763, Min: 0.017895, Max: 0.018863]
273 100.0% | <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
274 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
275 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
276 ----------------------------------------------------------------------------------------------------------------------------------------------------------
277 5.5% | __vfprintf_internal [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 55, Avg: 0.017764, Min: 0.017838, Max: 0.018741]
278 100.0% | <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
279 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
280 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
281 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
282 ----------------------------------------------------------------------------------------------------------------------------------------------------------
283 5.5% | _IO_file_overflow@GLIBC_2.2.5 [/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 55, Avg: 0.017764, Min: 0.017924, Max: 0.018732]
284 100.0% | <- _IO_new_file_xsputn[/lib/x86_64-linux-gnu/libc-2.31.so] <- __vfprintf_internal[/lib/x86_64-linux-gnu/libc-2.31.so]
285 <- printf[/lib/x86_64-linux-gnu/libc-2.31.so]
286 <- asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd
287 <- printPeace2[/home/peacelee/test/a.out] <- printPeace[/home/peacelee/test/a.out] <- main[/home/peacelee/test/a.out]
288 <- __libc_start_main[/lib/x86_64-linux-gnu/libc-2.31.so] <- _start[/home/peacelee/test/a.out]
289 ----------------------------------------------------------------------------------------------------------------------------------------------------------
290
291 >>>
292
293 # python3 guider/guider.py pytop -g iotop -H
294
295 [Top Pycall Info] [Time: 7469667.000] [Interval: 1.003] [NrSamples: 283] [iotop(2943070): 13%(Usr/10%+Sys/2%)] [guider(2943073): 53%] [SampleRate: 0.001]
296 ==========================================================================================================================================================
297 Usage | Function [PATH] <Sample>
298 ==========================================================================================================================================================
299 56.9% | WAIT(poll@GLIBC_2.2.5) [/usr/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 161>
300 100.0% | <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
301 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
302 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
303 <- <module>[/usr/sbin/iotop] <Cnt: 161>
304 ----------------------------------------------------------------------------------------------------------------------------------------------------------
305 10.2% | parse_proc_pid_status [/usr/lib/python3/dist-packages/iotop/data.py] <Cnt: 29>
306 100.0% | <- get_cmdline[/usr/lib/python3/dist-packages/iotop/data.py] <- format[/usr/lib/python3/dist-packages/iotop/ui.py]
307 <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py] <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py]
308 <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
309 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
310 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
311 <- <module>[/usr/sbin/iotop] <Cnt: 29>
312 ----------------------------------------------------------------------------------------------------------------------------------------------------------
313 4.6% | read@GLIBC_2.26 [/usr/lib/x86_64-linux-gnu/libc-2.31.so] <Cnt: 13>
314 76.9% | <- parse_proc_pid_status[/usr/lib/python3/dist-packages/iotop/data.py] <- get_cmdline[/usr/lib/python3/dist-packages/iotop/data.py]
315 <- format[/usr/lib/python3/dist-packages/iotop/ui.py] <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py]
316 <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py] <- run[/usr/lib/python3/dist-packages/iotop/ui.py]
317 <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py] <- wrapper[/usr/lib/python3.8/curses/__init__.py]
318 <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py] <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py]
319 <- main[/usr/lib/python3/dist-packages/iotop/ui.py] <- <module>[/usr/sbin/iotop] <Cnt: 10>
320 23.1% | <- get_cmdline[/usr/lib/python3/dist-packages/iotop/data.py] <- format[/usr/lib/python3/dist-packages/iotop/ui.py]
321 <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py] <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py]
322 <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
323 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
324 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
325 <- <module>[/usr/sbin/iotop] <Cnt: 3>
326 ----------------------------------------------------------------------------------------------------------------------------------------------------------
327 4.2% | format [/usr/lib/python3/dist-packages/iotop/ui.py] <Cnt: 12>
328 100.0% | <- get_data[/usr/lib/python3/dist-packages/iotop/ui.py] <- refresh_display[/usr/lib/python3/dist-packages/iotop/ui.py]
329 <- run[/usr/lib/python3/dist-packages/iotop/ui.py] <- run_iotop_window[/usr/lib/python3/dist-packages/iotop/ui.py]
330 <- wrapper[/usr/lib/python3.8/curses/__init__.py] <- run_iotop[/usr/lib/python3/dist-packages/iotop/ui.py]
331 <- <lambda>[/usr/lib/python3/dist-packages/iotop/ui.py] <- main[/usr/lib/python3/dist-packages/iotop/ui.py]
332 <- <module>[/usr/sbin/iotop] <Cnt: 12>
333 ----------------------------------------------------------------------------------------------------------------------------------------------------------
334
335 >>>
336
337 # python3 guider/guider.py ftop -g nginx
338
339 [Top File Info] [Time: 497555.620] [Proc: 41] [FD: 2,047] [File: 87] [CPU: 95%(Usr:54%/Sys:41%)] (Unit: %/MB/NR)
340 ==========================================================================================================================================================
341 Process ( ID / Pid / Nr / Pri)| FD | Path |
342 ----------------------------------------------------------------------------------------------------------------------------------------------------------
343 nginx ( 1348/ 1333/ 1/C 0)| 49| SOCKET: 42 NORMAL: 3 DEVICE: 2 EVENT: 2 PIPE: 0 PROC: 0 |
344 | 49| /var/log/nginx/error.log (0, O_WRONLY|O_APPEND|O_CLOEXEC) |
345 | 48| socket:[32124] |
346 | 37| socket:[32102] |
347 | 36| anon_inode:[eventfd] |
348 | 35| anon_inode:[eventpoll] |
349 | 34| socket:[32073] |
350 | 8| socket:[32074] |
351 | 7| socket:[20935] |
352 | 6| socket:[20934] (TCP:0.0.0.0:80/LISTEN) |
353 | 5| /var/log/nginx/access.log (0, O_WRONLY|O_APPEND|O_CLOEXEC) |
354 | 3| socket:[32046] |
355 | 2| /var/log/nginx/error.log (0, O_WRONLY) |
356 | 1| /dev/null (0, O_RDWR) |
357 | 0| /dev/null (0, O_RDWR) |
358 ----------------------------------------------------------------------------------------------------------------------------------------------------------
359
360 >>>
361
362 # python3 guider/guider.py stacktop -g syslog
363
364 [Top Info] [Time: 7176163.830] [Interval: 1.0] [Ctxt: 2914] [Life: +13/-12] [IRQ: 5103] [Core: 24] [Task: 328/435] [RAM: 63876] [Swap: 65491] (Unit: %/MB/NR)
365 [Cycle: 2G / Inst: 3G / IPC: 1.34 / CacheMiss: 6M(34%) / BranchMiss: 4M(0%) / Clock: 23G / MinFlt: 53,257 / MajFlt: 0]
366 ==========================================================================================================================================================
367 ID | CPU (Usr/Ker/Blk/IRQ)| Mem (Diff/ User/Cache/Kern)| Swap (Diff/ I/O )|NrPgRclm | BlkRW | NrFlt | NrBlk | NrSIRQ | NrMlk | NrDrt | Network |
368 ----------------------------------------------------------------------------------------------------------------------------------------------------------
369 Total | 6 %( 3 / 1 / 0 / 0 )| 4913(-204/ 974/56824/1165)| 0 ( 0 / 0/0 )| 0/0 | 0/42 | 0 | 0 | 3713 | 0 | 90901 | 2K/13K |
370 ==========================================================================================================================================================
371 Thread ( TID/ PID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| Mem(RSS/Txt/Shr/Swp)| Blk( RD / WR /NrFlt)| Yld | Prmt | FD | LifeTime| WaitChannel |
372 ----------------------------------------------------------------------------------------------------------------------------------------------------------
373 rsyslogd ( 2702/ 2702/ 4/C 0)| 0( 0/ 0/ -)| 244( 5/ 0/ 2/ 0)| 0( -/ -/ 0)| 0| 0| 64| 1K:22:40|poll_schedule_timeout|
374 100% | poll_schedule_timeout+0x43/0x70 <- do_select+0x711/0x7f0 <- core_sys_select+0x196/0x280 <-
375 SyS_select+0xa6/0xe0 <- entry_SYSCALL_64_fastpath+0x1a/0xa5
376 ----------------------------------------------------------------------------------------------------------------------------------------------------------
377 rsyslogd ( 2779/ 2702/ 4/C 0)| 0( 0/ 0/ -)| 244( 5/ 0/ 2/ 0)| 0( -/ -/ 0)| 0| 0| 64| 1K:22:40|poll_schedule_timeout|
378 100% | poll_schedule_timeout+0x43/0x70 <- do_select+0x711/0x7f0 <- core_sys_select+0x196/0x280 <-
379 SyS_select+0xa6/0xe0 <- entry_SYSCALL_64_fastpath+0x1a/0xa5
380 ----------------------------------------------------------------------------------------------------------------------------------------------------------
381 rsyslogd ( 2780/ 2702/ 4/C 0)| 0( 0/ 0/ 0)| 244( 5/ 0/ 2/ 0)| 0( -/ -/ 0)| 116| 0| 64| 1K:22:40| do_syslog |
382 99% | do_syslog+0x446/0x4c0 <- kmsg_read+0x3f/0x50 <- proc_reg_read+0x3d/0x60 <- __vfs_read+0x23/0x110 <-
383 vfs_read+0x91/0x130 <- SyS_read+0x41/0xa0 <- entry_SYSCALL_64_fastpath+0x1a/0xa5
384 ----------------------------------------------------------------------------------------------------------------------------------------------------------
385
386 >>>
387
388 # python3 guider/guider.py ptop -g yes
389
390 [Top Info] [Time: 7181955.420] [Interval: 1.0] [Ctxt: 121] [Life: +0/-0] [IRQ: 1947] [Core: 24] [Task: 317/424] [RAM: 63876] [Swap: 65491] (Unit: %/MB/NR)
391 ==========================================================================================================================================================
392 ID | CPU (Usr/Ker/Blk/IRQ)| Mem (Diff/ User/Cache/Kern)| Swap (Diff/ I/O )|NrPgRclm | BlkRW | NrFlt | NrBlk | NrSIRQ | NrMlk | NrDrt | Network |
393 ----------------------------------------------------------------------------------------------------------------------------------------------------------
394 Total | 5 %( 4 / 0 / 0 / 0 )| 3783( 0/ 875/58078/1140)| 0 ( 0 / 0/0 )| 0/0 | 0/0 | 0 | 0 | 2023 | 0 | 0 | 1K/3K |
395 ==========================================================================================================================================================
396 Process ( PID/ PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| Mem(RSS/Txt/Shr/Swp)| Blk( RD / WR /NrFlt)| Yld | Prmt | FD | LifeTime| WaitChannel |
397 ----------------------------------------------------------------------------------------------------------------------------------------------------------
398 yes (22371/ 9085/ 1/R 90)| 99( 99/ 0/ 0)| 8( 0/ 0/ 0/ 0)| 0( -/ -/ 0)| 0| 0| 256| 1:34:11| RUNNING |
399 | [Cycle: 2G / Inst: 6G / IPC: 2.82 / CacheMiss: 11K(98%) / BranchMiss: 26K(0%) / Clock: 972M / MinFlt: 0 / MajFlt: 0]
400 ----------------------------------------------------------------------------------------------------------------------------------------------------------
401
402 >>>
403
404 # python3 guider/guider.py mtop
405
406 [Top Info] [Time: 92097.250] [Inter: 1.0] [Ctxt: 41] [Life: +0/-0] [IRQ: 6] [Core: 8] [Task: 49/77] [Load: 0/0/0] [RAM: 3.7G] [Swap: 1.0G] [Bat: 99%/08:43:
407 [SYSTEM > Active: 490.2M, Active(anon): 3.8M, Active(file): 486.4M, AnonHugePages: 46.0M, AnonPages: 139.8M
408 Buffers: 127.7M, Cached: 698.4M, CommitLimit: 2.9G, Committed_AS: 675.7M, DirectMap1G: 8.0G
409 DirectMap2M: 3.8G, DirectMap4k: 101.0M, Dirty: 88.0K, Hugepagesize: 2.0M, Inactive: 483.1M
410 Inactive(anon): 159.6M, Inactive(file): 323.5M, KReclaimable: 66.2M, KernelStack: 3.6M, Mapped: 99.9M
411 MemAvailable: 3.1G, MemFree: 2.4G, MemTotal: 3.7G, PageTables: 3.5M, Percpu: 3.9M
412 SReclaimable: 66.2M, SUnreclaim: 49.3M, Shmem: 16.2M, Slab: 115.5M, SwapFree: 1.0G
413 SwapTotal: 1.0G, VmallocTotal: 32.0T, VmallocUsed: 24.7M]
414 [BUDDY > DMA: 0_0_0_0_0_0_0_0_0_1_3 / DMA32: 1,721_922_562_1,003_698_425_265_98_13_15_543 / Normal: 7_4_2_2_1_0_0_1_0_0_0]
415 [KSM > full_scans: 0, max_page_sharing: 256, pages_shared: 0, pages_sharing: 0, pages_to_scan: 100, pages_total: 0, pages_unshared: 0
416 pages_volatile: 0, run: 0, sleep_millisecs: 20, stable_node_chains: 0, stable_node_chains_prune_millisecs: 2,000, stable_node_dups: 0
417 use_zero_pages: 0]
418 [VM > swappiness: 60 / cache_pressure: 100 / overcommit: 0]
419 [N0-DMA > diff: 0 / free: 14.0M / min: 244.0K / low: 304.0K / high: 364.0K / managed: 14.0M / present: 14.6M / spanned: 16.0M]
420 [N0-DMA32 > diff: -252.0K / free: 2.4G / min: 65.2M / low: 81.5M / high: 97.8M / managed: 3.7G / present: 3.9G / spanned: 4.0G]
421 [N0-Device > diff: 0 / free: 0 / min: 0 / low: 0 / high: 0 / managed: 0 / present: 0 / spanned: 8.0G]
422 [N0-Normal > diff: 0 / free: 732.0K / min: 592.0K / low: 740.0K / high: 888.0K / managed: 33.5M / present: 42.0M / spanned: 42.0M]
423 ==========================================================================================================================================================
424 ID | CPU(Usr/Ker/Blk/IRQ)|MemAvl(Per/ User/ Cache/ Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt |Blk| NrSIRQ | PgMlk | PgDirt | NetIO |
425 ----------------------------------------------------------------------------------------------------------------------------------------------------------
426 Total | 0 %( 0/ 0/ 0/ 0)| 3143( 18/ 139/ 941/ 259)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 0 | 0 | 22 | 255/52 |
427 ----------------------------------------------------------------------------------------------------------------------------------------------------------
428 CPU [ ] MEM [####### ] SWAP [ ]|
429 ==========================================================================================================================================================
430 Process ( PID/PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| SID| USER| FD| LifeTime| Parent|
431 ----------------------------------------------------------------------------------------------------------------------------------------------------------
432 snapd (3094/ 1/ 15/C 0)| 0( 0/ 0/ -)|1722( 43/ 9/ 18/ 0)| 0( -/ -/ 0)| 3094| root| 128| 16:50:57| systemd(1)|
433 MEM(ANON/73) | VSS: 1.7G / RSS: 23.7M / PSS: 23.7M / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
434 MEM(FILE/4) | VSS: 23.7M / RSS: 21.5M / PSS: 19.9M / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
435 MEM(HEAP/1) | VSS: 132.0K / RSS: 4.0K / PSS: 4.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
436 MEM(OTHER/2) | VSS: 24.0K / RSS: 4.0K / PSS: 0 / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
437 MEM(STACK/1) | VSS: 132.0K / RSS: 20.0K / PSS: 20.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
438 MEM(SUM) | VmPeak: 1.7G, VmHWM: 54.2M, VmData: 175.5M, HugetlbPages: 0, RssAnon: 24.7M, RssFile: 19.0M, RssShmem: 0 |
439 ----------------------------------------------------------------------------------------------------------------------------------------------------------
440
441 >>>
442
443 # python3 guider/guider.py ntop
444
445 [Top Info] [Time: 186473.960] [Interval: 1.0] [Ctxt: 7865] [Life: +0/-0] [OOM: 0] [IRQ: 4229] [Core: 8] [Task: 328/1171] [Load: 0.5/0.3/0.3] [RAM: 62.8G]
446 ==========================================================================================================================================================
447 ID | CPU(Usr/Ker/Blk/IRQ)| Avl(Diff/ User/Cache/Kern)| Swap(Diff/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDrt | Network |
448 ----------------------------------------------------------------------------------------------------------------------------------------------------------
449 Total | 1 %( 0 / 0 / 0 / 0 )|59939( -2/ 3054/ 6429/ 350)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 1661 | 1607 | 343 | 652K/9K |
450 ==========================================================================================================================================================
451 Network | Receive | Transfer |
452 ----------------------------------------------------------------------------------------------------------------------------------------------------------
453 Dev | IP | Size | Packet | Error | Drop | Multicast | Size | Packet | Error | Drop | Multicast |
454 ==========================================================================================================================================================
455 docker0 | 166.104.101.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
456 eno1 | 166.104.101.1 | 665.9K | 475 | 0 | 0 | 1 | 12.0K | 168 | 0 | 0 | 0 |
457 enx201601190a25 | 166.104.101.27 | 48 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
458 lo | 127.0.0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
459 virbr0 | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
460 virbr0-nic | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
461 [ TOTAL ] | | 666.0K | 476 | 0 | 0 | 1 | 12.0K | 168 | 0 | 0 | 0 |
462 ==========================================================================================================================================================
463
464 >>>
465
466 # python3 guider/guider.py disktop
467
468 [Top Info] [Time: 262411.830] [Inter: 1.0] [Ctxt: 802] [Life: +0/-0] [IRQ: 10675] [Core: 40] [Task: 481/700] [Load: 38/38/38] [RAM: 125.7G] [Swap: 4.0G]
469 ==========================================================================================================================================================
470 ID | CPU(Usr/Ker/Blk/IRQ)| Avl( Per/ User/Cache/Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt | PrBlk | NrSIRQ | PgMlk | PgDrt | Network |
471 ----------------------------------------------------------------------------------------------------------------------------------------------------------
472 Total | 98 %(97 / 0 / 0 / 0 )|124431( 96/ 994/ 3531/1733)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 11620 | 4613 | 70 | 1K/0 |
473 ==========================================================================================================================================================
474 DEV |BUSY| AVQ | READ | WRITE | FREE( DIFF)|USAGE| TOTAL | AVF | FS | MountPoint <Option> |
475 ----------------------------------------------------------------------------------------------------------------------------------------------------------
476 /dev/sda2 | 0%| 0| 0| 0| 670.6G( 0)| 28%| 937.4G| 57.6M| ext4 | / <rw,relatime> |
477 /dev/loop4 | 0%| 0| 0| 0| 0( 0)| 100%| 30.0M| 0|squashfs| /snap/snapd/9279 <ro,nodev,relatime> |
478 /dev/loop5 | 0%| 0| 0| 0| 0( 0)| 100%| 70.0M| 0|squashfs| /snap/lxd/16922 <ro,nodev,relatime> |
479 /dev/sda1 | 0%| 0| 0| 0| 503.0M( 0)| 1%| 510.0M| 0| vfat | /boot/efi <rw,relatime> |
480 /dev/loop1 | 0%| 0| 0| 0| 0( 0)| 100%| 55.0M| 0|squashfs| /snap/core18/1885 <ro,nodev,relatime> |
481 /dev/loop2 | 0%| 0| 0| 0| 0( 0)| 100%| 70.0M| 0|squashfs| /snap/lxd/16894 <ro,nodev,relatime> |
482 /dev/loop0 | 0%| 0| 0| 0| 0( 0)| 100%| 55.0M| 0|squashfs| /snap/core18/1880 <ro,nodev,relatime> |
483 /dev/loop3 | 0%| 0| 0| 0| 0( 0)| 100%| 30.0M| 0|squashfs| /snap/snapd/8790 <ro,nodev,relatime> |
484 /run/snapd/ns | 0%| 0| 0| 0| 12.6G( 0)| 0%| 12.6G| 15.7M| tmpfs | /run/snapd/ns |
485 /run/user/1004 | 0%| 0| 0| 0| 12.6G( 0)| 0%| 12.6G| 15.7M| tmpfs | /run/user/1004 <rw,nosuid,nodev,relatime> |
486 /sys/fs/cgroup | 0%| 0| 0| 0| 62.9G( 0)| 0%| 62.9G| 15.7M| tmpfs | /sys/fs/cgroup <ro,nosuid,nodev,noexec> |
487 /run | 0%| 0| 0| 0| 12.6G( 0)| 0%| 12.6G| 15.7M| tmpfs | /run <rw,nosuid,nodev,noexec,relatime> |
488 /run/lock | 0%| 0| 0| 0| 5.0M( 0)| 0%| 5.0M| 15.7M| tmpfs | /run/lock <rw,nosuid,nodev,noexec,relatime> |
489 /dev/shm | 0%| 0| 0| 0| 62.9G( 0)| 0%| 62.9G| 15.7M| tmpfs | /dev/shm <rw,nosuid,nodev> |
490 ==========================================================================================================================================================
491
492 >>>
493
494 # python3 guider/guider.py wtop -g yes
495
496 [Top Info] [Time: 92197.480] [Inter: 1.0] [Ctxt: 72] [Life: +0/-0] [IRQ: 18] [Core: 8] [Task: 49/77] [Load: 0/0/0] [RAM: 3.7G] [Swap: 1.0G] [Bat: 99%/08:43:53/+]
497 ==========================================================================================================================================================
498 ID | CPU(Usr/Ker/Blk/IRQ)|MemAvl(Per/ User/ Cache/ Kern)| Swap( Per/ In/Out)| PgRclm | BlkRW | NrFlt |Blk| NrSIRQ | PgMlk | PgDirt | NetIO |
499 ----------------------------------------------------------------------------------------------------------------------------------------------------------
500 Total | 1 %( 0/ 0/ 0/ 0)| 3134( 18/ 140/ 941/ 267)| 0( 0/ 0/ 0)| 0/0 | 0/0 | 0 | 0 | 0 | 0 | 36 | 0/0 |
501 ----------------------------------------------------------------------------------------------------------------------------------------------------------
502 CPU [ ] MEM [####### ] SWAP [ ]|
503 ==========================================================================================================================================================
504 Process ( PID/PPID/ Nr/ Pri)| CPU(Usr/Ker/Dly)| VSS( RSS/Txt/Shr/Swp)| Blk( RD/ WR/NrFlt)| SID| USER| FD| LifeTime| Parent|
505 ----------------------------------------------------------------------------------------------------------------------------------------------------------
506 snapd (3094/ 1/ 15/C 0)| 0( 0/ 0/ 0)|1722( 43/ 9/ 18/ 0)| 0( -/ -/ 0)| 3094| root| 128| 16:52:37| systemd(1)|
507 MEM(VSS) | VSS: [ 1.7G] -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G -> 1.7G
508 MEM(RSS) | RSS: [ 45.4M] -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M -> 45.4M
509 MEM(PSS) | PSS: [ 43.8M] -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M -> 43.8M
510 MEM(USS) | USS: [ 43.7M] -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M -> 43.7M
511 MEM(WSS) | WSS: [ 1.7M] -> 0 -> 12.7M -> 12.7M -> 12.7M -> 12.7M -> 12.7M -> 12.7M -> 12.7M
512 MEM(ANON/73) | VSS: 1.7G / RSS: 23.9M / PSS: 23.9M / SWAP: 0 / HUGE: 16M / LOCK: 0 / SDRT: 0 / PDRT: 23.9M|
513 | WSS: [ 0] -> 0 -> 12.2M -> 12.2M -> 12.2M -> 12.2M -> 12.2M -> 12.2M -> 12.2M
514 MEM(FILE/4) | VSS: 23.7M / RSS: 21.5M / PSS: 19.9M / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 1.9M|
515 | WSS: [ 1.7M] -> 0 -> 436.0K -> 436.0K -> 436.0K -> 436.0K -> 436.0K -> 436.0K -> 436.0K
516 MEM(HEAP/1) | VSS: 132.0K / RSS: 4.0K / PSS: 4.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 4.0K|
517 | WSS: [ 0] -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0
518 MEM(OTHER/2) | VSS: 24.0K / RSS: 4.0K / PSS: 0 / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 0|
519 | WSS: [ 4.0K] -> 0 -> 4.0K -> 4.0K -> 4.0K -> 4.0K -> 4.0K -> 4.0K -> 4.0K
520 MEM(STACK/1) | VSS: 132.0K / RSS: 20.0K / PSS: 20.0K / SWAP: 0 / HUGE: 0 / LOCK: 0 / SDRT: 0 / PDRT: 20.0K|
521 | WSS: [ 0] -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0 -> 0
522 MEM(SUM) | VmPeak: 1.7G, VmHWM: 54.2M, VmData: 175.5M, HugetlbPages: 0, RssAnon: 24.7M, RssFile: 19.0M, RssShmem: 0 |
523 ----------------------------------------------------------------------------------------------------------------------------------------------------------
524 [ TOTAL ]| 0.0( 0/ 0)| RSS: 43.0M|Swp: 0| 0( -/ -/ 0)| Yld: -| Prmt: -| Task: 1|
525 ----------------------------------------------------------------------------------------------------------------------------------------------------------
526
527 >>>
528
529 # python3 guider/guider.py btrace -g a.out -H
530
531 _start/0x55e321d151ee [/home/peacelee/test/a.out]
532 __libc_start_main/0x7ffb520af0b3 [/lib/x86_64-linux-gnu/libc-2.31.so]
533 main/0x55e321d15478 [/home/peacelee/test/a.out]
534 printPeace/0x55e321d15451 [/home/peacelee/test/a.out]
535 printPeace2/0x55e321d15392 [/home/peacelee/test/a.out]
536 asdfasdfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasdfas/0x55e321d152e2 [/home/peacelee/test/a.out]
537 0.000384 read@GLIBC_2.26/0x7ffb52199130(-0x1,0x0,0x0,0x0,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
538 0.000391 close@GLIBC_2.4/0x7ffb52199970(-0x1,0x0,0xffffffffffffff80,0x0,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
539 0.000398 printf/0x7ffb520ece10(0x55e321d1600a,0x9,0xffffffffffffff80,0x0,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
540 0.000405 __vfprintf_internal/0x7ffb521019e0(0x7ffb522746a0,0x55e321d1600a,0x7fff41688b40,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
541 0.000412 __strchrnul_sse2/0x7ffb5213c820(0x55e321d1600a,0x25,0x7fff41688b40,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
542 0.000420 _IO_new_file_xsputn/0x7ffb5211a750(0x7ffb522746a0,0x55e321d1600a,0x3,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
543 0.000426 __mempcpy_sse2_unaligned_erms/0x7ffb52146d00(0x55e322290330,0x55e321d1600a,0x3,0x55e321d1600a,0x0,0x5) [/lib/x86_64-linux-gnu/libc-2.31.so]
544 0.000432 _itoa_word/0x7ffb520e6760(0x9,0x7fff41688af8,0xa,0x55e321d1600e,-0x1,0x3) [/lib/x86_64-linux-gnu/libc-2.31.so]
545 0.000439 _IO_new_file_xsputn/0x7ffb5211a750(0x7ffb522746a0,0x7fff41688af7,0x1,0x55e321d1600e,0x0,0x3) [/lib/x86_64-linux-gnu/libc-2.31.so]
546 0.000446 __mempcpy_sse2_unaligned_erms/0x7ffb52146d00(0x55e322290333,0x7fff41688af7,0x1,0x55e321d1600e,0x0,0x3) [/lib/x86_64-linux-gnu/libc-2.31.so]
547 0.000452 __strchrnul_sse2/0x7ffb5213c820(0x55e321d1600f,0x25,0x1,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
548 0.000458 _IO_new_file_xsputn/0x7ffb5211a750(0x7ffb522746a0,0x55e321d1600f,0x1,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
549 0.000464 __mempcpy_sse2_unaligned_erms/0x7ffb52146d00(0x55e322290334,0x55e321d1600f,0x1,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
550 0.000471 _IO_file_overflow@GLIBC_2.2.5/0x7ffb5211bf00(0x7ffb522746a0,-0x1,0xc00,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
551 0.000480 _IO_do_write@GLIBC_2.2.5/0x7ffb5211ba20(0x7ffb522746a0,0x55e322290330,0x5,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
552 0.000486 _IO_file_write@GLIBC_2.2.5/0x7ffb52119fe0(0x7ffb522746a0,0x55e322290330,0x5,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
553 0.000493 write@GLIBC_2.2.5/0x7ffb521991d0(0x1,0x55e322290330,0x5,0x55e321d1600f,0x0,0x4) [/lib/x86_64-linux-gnu/libc-2.31.so]
554
555 >>>
556
557 # python3 guider/guider.py btrace -g yes -H -c "*|getret"
558
559 0.532473 0x2cf0/0x560d7fd28cf0(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
560 0.532488 0x4c40/0x560d7fd2ac40(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
561 0.532501 write@GLIBC_2.2.5/0x7faab22f1040(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/lib/x86_64-linux-gnu/libc-2.31.so]
562 0.532516 write@GLIBC_2.2.5[RET]=0x2000(8192)/0.000015 -> 0x4c40/0x560d7fd26000 [/usr/bin/yes]
563 0.532557 0x4c40[RET]=0x2000(8192)/0.000069 -> 0x2cf0/0x560d7fd26000 [/usr/bin/yes]
564 0.532618 0x2cf0[RET]=0x2000(8192)/0.000145 -> 0x2580/0x560d7fd26000 [/usr/bin/yes]
565 0.532678 0x2cf0/0x560d7fd28cf0(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
566 0.532691 0x4c40/0x560d7fd2ac40(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
567 0.532706 write@GLIBC_2.2.5/0x7faab22f1040(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/lib/x86_64-linux-gnu/libc-2.31.so]
568 0.532721 write@GLIBC_2.2.5[RET]=0x2000(8192)/0.000015 -> 0x4c40/0x560d7fd26000 [/usr/bin/yes]
569 0.532798 0x4c40[RET]=0x2000(8192)/0.000107 -> 0x2cf0/0x560d7fd26000 [/usr/bin/yes]
570 0.532881 0x2cf0[RET]=0x2000(8192)/0.000204 -> 0x2580/0x560d7fd26000 [/usr/bin/yes]
571 0.532946 0x2cf0/0x560d7fd28cf0(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
572 0.532961 0x4c40/0x560d7fd2ac40(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/usr/bin/yes]
573 0.532975 write@GLIBC_2.2.5/0x7faab22f1040(0x1,0x560d81815440,0x2000,0x7faab23c8640,0x560d81815440,0x7c) [/lib/x86_64-linux-gnu/libc-2.31.so]
574 0.532990 write@GLIBC_2.2.5[RET]=0x2000(8192)/0.000015 -> 0x4c40/0x560d7fd26000 [/usr/bin/yes]
575 0.533067 0x4c40[RET]=0x2000(8192)/0.000106 -> 0x2cf0/0x560d7fd26000 [/usr/bin/yes]
576 0.533194 0x2cf0[RET]=0x2000(8192)/0.000248 -> 0x2580/0x560d7fd26000 [/usr/bin/yes]
577
578 >>>
579
580 $ python3 guider/guider.py rtop &
581 $ cat /tmp/guider.report
582
583 {
584 "task": {
585 "nrThread": 397,
586 "nrBlocked": 0,
587 "nrCtx": 4290,
588 "nrProc": 292
589 },
590 "mem": {
591 "kernel": 1432,
592 "anonDiff": -1,
593 "pgRclmFg": 0,
594 "cache": 35332,
595 "slabDiff": 0,
596 "free": 26929,
597 "anon": 698,
598 "pgDirty": 28,
599 "file": 31751,
600 "freeDiff": -1,
601 "pgRclmBg": 0,
602 "total": 64391,
603 "slab": 3581,
604 "fileDiff": -1
605 "procs": {
606 "1954": {
607 "text": 0,
608 "pid": 1954,
609 "rank": 2,
610 "comm": "ruby1.9.1",
611 "runtime": "110:43:32",
612 "rss": 104
613 },
614 },
615 "storage": {
616 "total": {
617 "read": 0,
618 "mount": {},
619 "favail": 133443655,
620 "free": 1141633,
621 "write": 1,
622 "usage": 1152423,
623 "total": 2294056,
624 "usageper": 50
625 },
626 "/dev/sdb1": {
627 "read": 0,
628 "mount": {
629 "path": "/mnt/hdd1",
630 "fs": "ext4",
631 "option": "rw,relatime,data=ordered"
632 },
633 "favail": 50709466,
634 "free": 293649,
635 "write": 0,
636 "usage": 645251,
637 "total": 938900,
638 "usageper": 68
639 },
640 },
641 "system": {
642 "load5m": 2.38,
643 "uptime": 4191643.92,
644 "nrSoftIrq": 7405,
645 "nrIrq": 7289,
646 "load15m": 0.84,
647 "interval": 1.029999999795109,
648 "pid": 14578,
649 "load1m": 9.39
650 },
651 "event": {
652 "CPU_INTENSIVE": {
653 "14592": {
654 "kernel": 0,
655 "runtime": "0:0:47",
656 "pid": 14592,
657 "rank": 3,
658 "comm": "yes",
659 "user": 99,
660 "total": 100
661 },
662 "14593": {
663 "kernel": 0,
664 "runtime": "0:0:46",
665 "pid": 14593,
666 "rank": 10,
667 "comm": "yes",
668 "user": 99,
669 "total": 100
670 },
671 },
672 "swap": {
673 "usage": 76,
674 "total": 65491,
675 "usageDiff": 0
676 },
677 "net": {
678 "inbound": 1479,
679 "outbound": 392
680 },
681 "cpu": {
682 "kernel": 0,
683 "iowait": 0,
684 "nrCore": 24,
685 "idle": 8,
686 "user": 91,
687 "irq": 0,
688 "total": 92,
689 "procs": {
690 "14592": {
691 "kernel": 0,
692 "runtime": "0:0:47",
693 "pid": 14592,
694 "rank": 3,
695 "comm": "yes",
696 "user": 99,
697 "total": 100
698 },
699 },
700 "block": {
701 "read": 0,
702 "write": 0,
703 "procs": {},
704 "nrMajFlt": 0,
705 "ioWait": 0
706 }
707 }
708
709 >>>
710
711 # python3 guider/guider.py limitcpu -g yes:50 -v
712
713 [Info] limited cpu usage of yes(22371) process to 50%, it used 50%
714
715 [WARN] <guider(574420)> started 1th guider(574420)
716
717 [WARN] <guider(574420)> 1th guider(574420) took 0.421747 seconds to finish one job
718
719 >>>
720
721 # python3 guider/guider.py sigtrace -g a.out
722
723 0.000929 [SIGABRT] {code=SI_TKILL, pid=signal(6858)|addr=0x1aca, uid=root(0), status=0}
724 [INFO] load /usr/lib/x86_64-linux-gnu/libc.so.6... [done]
725 [INFO] load /home/iipeace/test/a.out... [done]
726 ==========================================================================================================================================================
727 Backtrace Info [a.out(6858)<-a.out(6858)]
728 ----------------------------------------------------------------------------------------------------------------------------------------------------------
729 pthread_kill@GLIBC_2.34+300/0x7f9656bd29fc[/usr/lib/x86_64-linux-gnu/libc.so.6]
730 gsignal@GLIBC_2.13+22/0x7f9656b7e476[/usr/lib/x86_64-linux-gnu/libc.so.6]
731 abort@GLIBC_2.2.5+211/0x7f9656b647f3[/usr/lib/x86_64-linux-gnu/libc.so.6]
732 0x893e0+662/0x7f9656bc5676[/usr/lib/x86_64-linux-gnu/libc.so.6]
733 __fortify_fail@GLIBC_2.2.5+42/0x7f9656c7259a[/usr/lib/x86_64-linux-gnu/libc.so.6]
734 __stack_chk_fail+22/0x7f9656c72566[/usr/lib/x86_64-linux-gnu/libc.so.6]
735 main+64/0x55a53b20e1f5[/home/iipeace/test/a.out]
736 0x29d10+128/0x7f9656b65d90[/usr/lib/x86_64-linux-gnu/libc.so.6]
737 __libc_start_main@GLIBC_2.2.5+128/0x7f9656b65e40[/usr/lib/x86_64-linux-gnu/libc.so.6]
738 [.text]+37/0x55a53b20e0a5[/home/iipeace/test/a.out]
739 ----------------------------------------------------------------------------------------------------------------------------------------------------------
740
741 0.001051 +++ exited a.out(6858) with 6(SIGABRT) +++
742
743 >>>
744
745 # python3 guider/guider.py setsched r:90:yes
746
747 [Info] changed the priority of yes(22371) to 90[R]
748
749 >>>
750
751 # python3 guider/guider.py remote -g a.out -c usercall:write#1#HOOK#4
752
753 [usercall] write(7f94ed747140)(1, HOOK, 4) = 0x4(4)
754
755 >>>
756
757 # python3 guider/guider.py printenv -g systemd
758
759 [ systemd(1) ]
760 -----------------------------------------------------------------------------
761 HOME=/
762 init=/sbin/init
763 NETWORK_SKIP_ENSLAVED=
764 recovery=
765 TERM=linux
766 drop_caps=
767 BOOT_IMAGE=/boot/vmlinuz-5.3.0-28-generic
768 PATH=/sbin:/usr/sbin:/bin:/usr/bin
769 PWD=/
770 rootmnt=/root
771
772 [ systemd(3310) ]
773 -----------------------------------------------------------------------------
774 LANG=en_US.UTF-8
775 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
776 NOTIFY_SOCKET=/run/systemd/notify
777 HOME=/home/syjung
778 LOGNAME=syjung
779 USER=syjung
780 SHELL=/bin/bash
781 INVOCATION_ID=bbc56cc8552e4a1d815197e0a6160270
782 JOURNAL_STREAM=9:10617556
783 XDG_RUNTIME_DIR=/run/user/1002
784
785 [ systemd(7094) ]
786 -----------------------------------------------------------------------------
787 LANG=en_US.UTF-8
788 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
789 NOTIFY_SOCKET=/run/systemd/notify
790 HOME=/home/peacelee
791 LOGNAME=peacelee
792 USER=peacelee
793 SHELL=/bin/bash
794 INVOCATION_ID=be65ebdd72964e09a3ac06495261702b
795 JOURNAL_STREAM=9:31410
796 XDG_RUNTIME_DIR=/run/user/1004
797
798 >>>
799
800 # python3 guider/guider.py kill -stop yes
801
802 [Info] sent SIGSTOP to yes(10594)
803
804 >>>
805
806 # python3 guider/guider.py printbind -g yes
807
808 [Function Bind Info] [Target: yes(410113)]
809 ==========================================================================================================================================================
810 Path Type Sym[Bind/Vis] => Link
811 ----------------------------------------------------------------------------------------------------------------------------------------------------------
812 [/usr/bin/yes]
813 NOTYPE _ITM_deregisterTMCloneTable@GLIBC_2.2.5[WEAK/DEFAULT] => NONE
814 NOTYPE _ITM_registerTMCloneTable@GLIBC_2.2.5[WEAK/DEFAULT] => NONE
815 FUNC __ctype_b_loc@GLIBC_2.2.5[GLOBAL/DEFAULT] => __ctype_b_loc/0x7f474b600400[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x37400]
816 FUNC __cxa_atexit@GLIBC_2.2.5[GLOBAL/DEFAULT] => __cxa_atexit@GLIBC_2.2.5/0x7f474b612f60[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x49f60]
817 FUNC __cxa_finalize@GLIBC_2.2.5[WEAK/DEFAULT] => __cxa_finalize@GLIBC_2.2.5/0x7f474b613090[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x4a090]
818 FUNC __fpending@GLIBC_2.2.5[GLOBAL/DEFAULT] => __fpending@GLIBC_2.2.5/0x7f474b658f80[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x8ff80]
819 FUNC __fprintf_chk[GLOBAL/DEFAULT] => __fprintf_chk@GLIBC_2.14/0x7f474b6fa110[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x131110]
820 FUNC __freading@GLIBC_2.2.5[GLOBAL/DEFAULT] => __freading@GLIBC_2.2.5/0x7f474b658e90[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x8fe90]
821 NOTYPE __gmon_start__@GLIBC_2.14[WEAK/DEFAULT] => NONE
822 FUNC __libc_start_main@GLIBC_2.2.5[GLOBAL/DEFAULT] => __libc_start_main@GLIBC_2.2.5/0x7f474b5effc0[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x26fc0]
823 FUNC __printf_chk@GLIBC_2.2.5[GLOBAL/DEFAULT] => __printf_chk@GLIBC_2.2.5/0x7f474b6fa040[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x131040]
824 FUNC __stack_chk_fail@GLIBC_2.2.5[GLOBAL/DEFAULT] => __stack_chk_fail@GLIBC_2.2.5/0x7f474b6fbb00[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x132b00]
825 FUNC _exit@GLIBC_2.2.5[GLOBAL/DEFAULT] => _Exit@GLIBC_2.3/0x7f474b6af290[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0xe6290]
826 FUNC abort@GLIBC_2.2.5[GLOBAL/DEFAULT] => abort@GLIBC_2.2.5/0x7f474b5ee72e[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x2572e]
827 FUNC bindtextdomain@GLIBC_2.2.5[GLOBAL/DEFAULT] => bindtextdomain@GLIBC_2.2.5/0x7f474b600920[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x37920]
828 FUNC calloc[GLOBAL/DEFAULT] => calloc@GLIBC_2.2.5/0x7f474b667c90[/usr/lib/x86_64-linux-gnu/libc-2.31.so/0x9ec90]
829 ----------------------------------------------------------------------------------------------------------------------------------------------------------
830
831 >>>
832
833 # python3 guider/guider.py rec -a -e m,b
834
835 [Thread Info] [ Elapsed: 2.050 ] [ Start: 2849868.198 ] [ Running: 112 ] [ CtxSwc: 3357 ] [ LogSize: 4054 KB ] [ Unit: Sec/MB/NR ]
836 ==========================================================================================================================================================
837 __________Thread Info___________|_____________CPU Info______________|______SCHED Info______|________BLOCK Info________|_____________MEM Info_____________|
838 | | | | |
839 Name( Tid/ Pid)|LF|Usage( %)|Delay( Max)|Pri| IRQ | Yld| Lose|Steal| Mig| Read( MB/ Cnt)|WCnt( MB)| Sum(Usr/Buf/Ker)|Rcl|Wst|DRcl(Nr)|
840 ==========================================================================================================================================================
841 # CPU: 12
842
843 CORE/0(-----/-----)|--| 0.00( 0.1)| 0.00( 0.00)| 0| 0.00| 7| -| -| -| 0.00( 0/ 1)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
844 CORE/1(-----/-----)|--| 0.00( 0.1)| 0.10( 0.00)| 0| 0.00| 147| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
845 CORE/2(-----/-----)|--| 0.00( 0.1)| 0.16( 0.00)| 0| 0.00| 211| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
846 CORE/3(-----/-----)|--| 0.00( 0.1)| 0.11( 0.00)| 0| 0.00| 181| -| -| -| 0.00( 0/ 0)| 32( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
847 CORE/4(-----/-----)|--| 0.00( 0.1)| 0.11( 0.00)| 0| 0.00| 232| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
848 CORE/5(-----/-----)|--| 0.30( 14.8)| 0.18( 0.00)| 0| 0.00| 179| -| -| -| 1.26( 6/ 495)| 19( 0)| 61( 57/ 0/ 3)| 0| 0|0.00( 0)|
849 CORE/6(-----/-----)|--| 0.00( 0.0)| 0.35( 0.00)| 0| 0.00| 57| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
850 CORE/7(-----/-----)|--| 0.00( 0.0)| 0.60( 0.00)| 0| 0.00| 100| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
851 CORE/8(-----/-----)|--| 0.00( 0.0)| 0.44( 0.00)| 0| 0.00| 59| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
852 CORE/9(-----/-----)|--| 0.00( 0.0)| 1.94( 0.00)| 0| 0.00| 37| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
853 CORE/10(-----/-----)|--| 0.07( 3.4)| 0.00( 0.00)| 0| 0.00| 2| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
854 CORE/11(-----/-----)|--| 0.00( 0.0)| 2.05( 0.00)| 0| 0.00| 39| -| -| -| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
855
856 ----------------------------------------------------------------------------------------------------------------------------------------------------------
857 # Hot: 4
858
859 synergyc( 3604/ 3602)| | 0.17( 8.5)| 0.00( 0.00)| 0| 0.00| 3| 14| 3| 0| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
860 arm-starfish-li(16087/16087)| | 0.13( 6.3)| 0.00( 0.00)| 0| 0.00| 0| 20| 157| 4| 1.26( 6/ 496)| 0( 0)| 61( 57/ 0/ 3)| 0| 0|0.00( 0)|
861 guider(16088/16088)| | 0.07( 3.4)| 0.00( 0.00)|R90| 0.00| 2| 0| 2| 0| 0.00( 0/ 0)| 0( 0)| 0( 0/ 0/ 0)| 0| 0|0.00( 0)|
862
863 ----------------------------------------------------------------------------------------------------------------------------------------------------------
864
865 >>>
866
867 # python3 guider/guider.py iorec -s
868 # python3 guider/guider.py report -a
869
870 [Thread Block Info] (Unit: NR)
871 ==========================================================================================================================================================
872 ID OPT NrDev TOTAL SEQUENTIAL( %) FS PATH
873 [ACCESS] COUNT
874 ==========================================================================================================================================================
875 TOTAL READ 8:3 131.8M 131.3M( 99.6) - /dev/sda3
876 [ 4.0K - 7.0K] 370
877 [ 16.0K - 31.0K] 11
878 [ 32.0K - 63.0K] 6
879 [ 64.0K - 127.0K] 5
880 [ 128.0K - 255.0K] 1037
881 253:0 131.8M 131.3M( 99.6) ext4 / <rw,relatime>
882 [ 4.0K - 7.0K] 370
883 [ 16.0K - 31.0K] 11
884 [ 32.0K - 63.0K] 6
885 [ 64.0K - 127.0K] 5
886 [ 128.0K - 255.0K] 1037
887 WRITE 253:0 40.0K 20.0K( 50.0) ext4 / <rw,relatime>
888 [ 4.0K - 7.0K] 10
889 8:3 24.0K 20.0K( 83.3) - /dev/sda3
890 [ 4.0K - 7.0K] 6
891 ----------------------------------------------------------------------------------------------------------------------------------------------------------
892 guider(4011197) READ 8:3 100.0M 100.0M(100.0) - /dev/sda3
893 [ 16.0K - 31.0K] 2
894 [ 32.0K - 63.0K] 1
895 [ 64.0K - 127.0K] 1
896 [ 128.0K - 255.0K] 799
897 253:0 100.0M 100.0M(100.0) ext4 / <rw,relatime>
898 [ 16.0K - 31.0K] 2
899 [ 32.0K - 63.0K] 1
900 [ 64.0K - 127.0K] 1
901 [ 128.0K - 255.0K] 799
902 ----------------------------------------------------------------------------------------------------------------------------------------------------------
903
904 [Thread FS Info] (Unit: NR)
905 ==========================================================================================================================================================
906 ID OPT NrDev INODE Size FS PATH
907 ==========================================================================================================================================================
908 TOTAL WRITE 16.0K
909 253:0 16.0K ext4 / <rw,relatime>
910 0 16.0K
911 READ 131.8M
912 0:3 1.4M ? ?
913 0 1.4M
914 253:0 130.4M ext4 / <rw,relatime>
915 24520383 100.0M /home/peacelee/guider/guider/TEST2[100.0M]
916 24520372 20.0M /home/peacelee/guider/guider/TEST[20.0M]
917 24520353 10.0M /home/peacelee/guider/guider/TEST3[10.0M]
918 6030383 84.0K
919 6819964 72.0K
920 6029790 68.0K
921 6031485 44.0K
922 6031543 40.0K
923 6819797 16.0K
924 6035523 16.0K
925 0 16.0K
926 6818557 4.0K
927 6818689 4.0K
928 7078584 4.0K
929 ----------------------------------------------------------------------------------------------------------------------------------------------------------
930 guider(4011197) READ 100.0M
931 253:0 100.0M ext4 / <rw,relatime>
932 24520383 100.0M /home/peacelee/guider/guider/TEST2[100.0M]
933 ----------------------------------------------------------------------------------------------------------------------------------------------------------
934 guider(4011193) READ 20.0M
935 253:0 20.0M ext4 / <rw,relatime>
936 24520372 20.0M /home/peacelee/guider/guider/TEST[20.0M]
937 ----------------------------------------------------------------------------------------------------------------------------------------------------------
938
939 >>>
940
941 # python3 guider/guider.py iorec -s
942 # python3 guider/guider.py report -q RALIST
943 # python3 guider/guider.py readahead readahead.list
944
945 [INFO] start readahead from '/home/peacelee/guider/guider/readahead.list'
946
947 [INFO] changed the CPU scheduling priority for guider(4011281) to 10[C]
948
949 [INFO] changed the I/O scheduling priority for guider(4011281) to IOPRIO_CLASS_IDLE(0)[IOPRIO_WHO_PROCESS]
950
951 [INFO] finished readahead a total of 130.0M data for 0.002 sec
952
953 >>>
954
955 # python3 guider/guider.py sysrec
956
957 [Thread Syscall Info] (Unit: Sec/NR)
958 ==========================================================================================================================================================
959 Name( Tid) Syscall( ID) Elapsed Count Error Min Max Avg
960 ==========================================================================================================================================================
961 arm-linux-gnuea( 3000)
962 close( 3) 0.039396 69 0 0.000001 0.005353 0.000571
963 stat( 4) 0.011521 74 0 0.000001 0.009423 0.000156
964 fchmod( 91) 0.000046 3 0 0.000002 0.000039 0.000015
965 getpriority(140) 0.000017 33 0 0.000000 0.000001 0.000001
966 lgetxattr(192) 0.000014 3 0 0.000003 0.000008 0.000005
967 recvfrom( 45) 0.000004 1 0 0.000004 0.000004 0.000004
968
969 ----------------------------------------------------------------------------------------------------------------------------------------------------------
970 guider( 3001)
971 pause( 34) 0.283474 1 1 0.283474 0.283474 0.283474
972 select( 23) 0.100122 1 0 0.100122 0.100122 0.100122
973 write( 1) 0.000234 6 0 0.000031 0.000059 0.000039
974 open( 2) 0.000084 7 0 0.000007 0.000038 0.000012
975 ioctl( 16) 0.000009 14 14 0.000001 0.000001 0.000001
976 fstat( 5) 0.000006 14 0 0.000001 0.000001 0.000000
977 lseek( 8) 0.000006 21 0 0.000000 0.000001 0.000000
978 close( 3) 0.000005 7 0 0.000000 0.000001 0.000001
979 rt_sigaction( 13) 0.000001 1 0 0.000001 0.000001 0.000001
980
981 ----------------------------------------------------------------------------------------------------------------------------------------------------------
982 mysqld( 3237)
983 futex(202) 0.000000 1 0 0.000000 0.000000 0.000000
984
985 ----------------------------------------------------------------------------------------------------------------------------------------------------------
986 mysqld( 3238)
987 futex(202) 0.000002 1 0 0.000002 0.000002 0.000002
988
989 ----------------------------------------------------------------------------------------------------------------------------------------------------------
990 screen( 9045)
991 select( 23) 0.000082 4 0 0.000004 0.000069 0.000021
992 ----------------------------------------------------------------------------------------------------------------------------------------------------------
993
994 >>>
995
996 # python3 guider/guider.py rec -e L
997
998 [Thread Futex Lock Info] [ Elapsed : 1.225 ] (Unit: Sec/NR)
999 ==========================================================================================================================================================
1000 Name( Tid/ Pid) Elapsed Process Block NrBlock CallMax Lock LockMax NrLock NrWait LBlock NrLBlock LastStat
1001 ==========================================================================================================================================================
1002 mysqld( 3236/ 3208) 0.469 0.000 0.469 1 0.469 0.000 0.000 0 1 0.000 0 Wait
1003 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1004 mysqld( 3237/ 3208) 0.890 0.000 0.890 1 0.890 0.000 0.000 0 1 0.000 0 Wait
1005 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1006 mysqld( 3238/ 3208) 1.075 0.000 1.075 1 1.075 0.000 0.000 0 1 0.000 0 Wait
1007 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1008
1009 [Thread File Lock Info] (Unit: Sec/NR)
1010 ==========================================================================================================================================================
1011 Name( Tid) Wait Lock nrTryLock nrLocked
1012 ==========================================================================================================================================================
1013 smbd( 2631) 0.000 0.000 3 3
1014 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1015
1016 >>>
1017
1018 # python3 guider/guider.py rec -s . -K openfile:getname::**string
1019
1020 [Thread KERNEL Event Info]
1021 ==========================================================================================================================================================
1022 Event Comm( Tid ) Usage Count ProcMax ProcMin InterMax InterMin
1023 ==========================================================================================================================================================
1024 openfile TOTAL( - ) 0.000729 1012 0.000013 0.000001 1.979834 0.000109
1025 ps(10728) 0.000640 968 0.000013 0.000000 0.001636 0.000006
1026 python2(10727) 0.000038 26 0.000004 0.000001 1.979834 0.000020
1027 tmux( 6959) 0.000031 9 0.000006 0.000003 0.299492 0.201316
1028 PassengerAgent(23183) 0.000008 5 0.000002 0.000001 0.007375 0.000109
1029 sendmail-mta( 3419) 0.000007 2 0.000006 0.000001 0.000077 0.000077
1030 PassengerAgent(10729) 0.000003 1 0.000003 0.000003 0.000000 0.000000
1031 smbd(11086) 0.000002 1 0.000002 0.000002 0.000000 0.000000
1032 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1033
1034 [Thread KERNEL Event History]
1035 ==========================================================================================================================================================
1036 EVENT TYPE TIME COMM( TID) CALLER ELAPSED ARG
1037 ==========================================================================================================================================================
1038 openfile EXIT 0.063942 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1039 openfile ENTER 0.137626 python2(10727) -
1040 openfile EXIT 0.137628 python2(10727) porch_do_sys_open 0.000002 1>"/sys/kernel/debug/tracing/trace"
1041 openfile ENTER 0.363431 tmux( 6959) -
1042 openfile EXIT 0.363437 tmux( 6959) porch_do_sys_open 0.000006 1>"/proc/7197/cmdline"
1043 openfile ENTER 0.510452 smbd(11086) -
1044 openfile EXIT 0.510454 smbd(11086) porch_do_sys_open 0.000002 1>"/var/log/samba/log.jhkim-z97x-ud3h"
1045 openfile ENTER 0.564845 tmux( 6959) -
1046 openfile EXIT 0.564848 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1047 openfile ENTER 0.864255 tmux( 6959) -
1048 openfile EXIT 0.864258 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7197/cmdline"
1049 openfile ENTER 1.065571 tmux( 6959) -
1050 openfile EXIT 1.065574 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1051 openfile ENTER 1.364980 tmux( 6959) -
1052 openfile EXIT 1.364984 tmux( 6959) porch_do_sys_open 0.000004 1>"/proc/7197/cmdline"
1053 openfile ENTER 1.437128 sendmail-mta( 3419) -
1054 openfile EXIT 1.437134 sendmail-mta( 3419) porch_do_sys_open 0.000006 1>"/proc/loadavg"
1055 openfile ENTER 1.437205 sendmail-mta( 3419) -
1056 openfile EXIT 1.437206 sendmail-mta( 3419) porch_do_sys_open 0.000001 1>"/proc/loadavg"
1057 openfile ENTER 1.566369 tmux( 6959) -
1058 openfile EXIT 1.566372 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7969/cmdline"
1059 openfile ENTER 1.865776 tmux( 6959) -
1060 openfile EXIT 1.865779 tmux( 6959) porch_do_sys_open 0.000003 1>"/proc/7197/cmdline"
1061 openfile ENTER 1.955265 PassengerAgent(10729) -
1062 openfile EXIT 1.955268 PassengerAgent(10729) porch_do_sys_open 0.000003 1>"/dev/fd"
1063 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1064
1065 >>>
1066
1067 # python3 guider/guider.py funcrec -s .
1068 # python3 guider/guider.py report -a
1069 # cat guider.out
1070
1071 [Function CPU Info] [Cnt: 394] [Interval: 8ms] (USER)
1072 ==========================================================================================================================================================
1073 __Usage__|___________________Function____________________|_____________________________________________Binary_____________________________________________
1074 ==========================================================================================================================================================
1075 99.0% | cpuTest | /media/disk/work/test/a.out
1076 + 100.0% | <- startTest [/media/disk/work/test/a.out] <- main [/media/disk/work/test/a.out]
1077 <- __libc_start_main [/lib/x86_64-linux-gnu/libc-2.19.so]
1078 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1079 0.5% | memset | /lib/x86_64-linux-gnu/libc-2.19.so
1080 + 100.0% | <- startTest [/media/disk/work/test/a.out] <- main [/media/disk/work/test/a.out]
1081 <- __libc_start_main [/lib/x86_64-linux-gnu/libc-2.19.so]
1082 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1083 0.3% | _int_malloc | /lib/x86_64-linux-gnu/libc-2.19.so
1084 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1085 0.3% | 00007f756e3e7ee4 | ??
1086 + 100.0% | <- 000000000044676f [/media/disk/work/test/a.out]
1087 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1088
1089 [Function CPU Info] [Cnt: 394] [Interval: 8ms] (KERNEL)
1090 ==========================================================================================================================================================
1091 __Usage__|____________________________________________________________________Function____________________________________________________________________
1092 ==========================================================================================================================================================
1093 100.0% | hrtimer_interrupt
1094 + 99.5% | <- local_apic_timer_interrupt <- smp_apic_timer_interrupt <- apic_timer_interrupt
1095 + 0.3% | <- local_apic_timer_interrupt <- smp_apic_timer_interrupt <- apic_timer_interrupt <- do_page_fault <- page_fault
1096 + 0.3% | <- local_apic_timer_interrupt <- smp_apic_timer_interrupt <- apic_timer_interrupt <- __do_fault <- handle_mm_fault <- __do_page_fault
1097 <- do_page_fault <- page_fault
1098 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1099
1100 >>>
1101
1102 # python3 guider/guider.py funcrec -e m -s .
1103 # python3 guider/guider.py report -a
1104 # cat guider.out
1105
1106 [Function Page Info] [Total: 11.4M] [Alloc: 11.4M(817)] [Free: 188.0K(47)] (USER)
1107 ==========================================================================================================================================================
1108 Usage ( Usr / Buf / Ker )|___________________Function____________________|________________LifeTime________________|______________Binary_______________
1109 ==========================================================================================================================================================
1110 10256K( 2048/ 0/ 8208)| memset | AVR: 1.563 / MIN: 1.560 / MAX: 1.568 | /lib/x86_64-linux-gnu/libc-2.19.so
1111 + 10256K( 2048/ 0/ 8208)| <- startTest [/media/disk/work/test/a.out] <- main [/media/disk/work/test/a.out]
1112 <- __libc_start_main [/lib/x86_64-linux-gnu/libc-2.19.so]
1113 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1114 960K( 956/ 0/ 4)| _int_malloc | AVR: 1.559 / MIN: 1.554 / MAX: 1.560 | /lib/x86_64-linux-gnu/libc-2.19.so
1115 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1116 56K( 16/ 0/ 40)| 00007f756e3e81e7 | AVR: 1.569 / MIN: 1.568 / MAX: 1.569 | ??
1117 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1118 44K( 36/ 0/ 8)| sysmalloc | AVR: 1.560 / MIN: 1.558 / MAX: 1.568 | /lib/x86_64-linux-gnu/libc-2.19.so
1119 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1120 12K( 12/ 0/ 0)| elf_machine_rela_relative | AVR: 1.568 / MIN: 1.568 / MAX: 1.568 | /lib/x86_64-linux-gnu/ld-2.19.so
1121 + 12K( 12/ 0/ 0)| <- dl_main [/lib/x86_64-linux-gnu/ld-2.19.so] <- _dl_sysdep_start [/lib/x86_64-linux-gnu/ld-2.19.so]
1122 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1123 8K( 8/ 0/ 0)| realloc | AVR: 1.568 / MIN: 1.568 / MAX: 1.568 | /lib/x86_64-linux-gnu/ld-2.19.so
1124 + 4K( 4/ 0/ 0)| <- _dl_map_object [/lib/x86_64-linux-gnu/ld-2.19.so]
1125 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1126 8K( 4/ 0/ 4)| dl_main | AVR: 1.568 / MIN: 1.568 / MAX: 1.568 | /lib/x86_64-linux-gnu/ld-2.19.so
1127 + 8K( 4/ 0/ 4)| <- _dl_sysdep_start [/lib/x86_64-linux-gnu/ld-2.19.so]
1128 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1129
1130 [Function Page Info] [Total: 11.4K] [Alloc: 11.4K(817)] [Free: 188.0K(47)] (KERNEL)
1131 ==========================================================================================================================================================
1132 Usage ( Usr / Buf / Ker )|___________________Function____________________|__________________________________LifeTime__________________________________
1133 ==========================================================================================================================================================
1134 8192K( 0/ 0/ 8192)| do_huge_pmd_anonymous_page | AVR: 1.563 / MIN: 1.562 / MAX: 1.564
1135 + 8192K( 0/ 0/ 8192)| <- handle_mm_fault <- __do_page_fault <- do_page_fault <- page_fault
1136 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1137 3084K( 3084/ 0/ 0)| handle_mm_fault | AVR: 1.563 / MIN: 1.554 / MAX: 1.569
1138 + 3076K( 3076/ 0/ 0)| <- __do_page_fault <- do_page_fault <- page_fault
1139 + 4K( 4/ 0/ 0)| <- __get_user_pages <- get_user_pages <- copy_strings.isra.17 <- copy_strings_kernel <- do_execve_common.isra.23
1140 <- SyS_execve <- stub_execve
1141 + 4K( 4/ 0/ 0)| <- __do_page_fault <- do_page_fault <- page_fault <- load_elf_binary <- search_binary_handler
1142 <- do_execve_common.isra.23 <- SyS_execve <- stub_execve
1143 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1144
1145 >>>
1146
1147 # python3 guider/guider.py filerec
1148
1149 [File Usage Info] [File: 213] [RAM: 175.2M] [Reclaim: 0/0] [Uptime: 1d:01:42:33] [Keys: Foward/Back/Save/Quit]
1150 ==========================================================================================================================================================
1151 __RAM___|__File__|__%__|__PSS___|____________________________________________________Library & Process____________________________________________________
1152 ==========================================================================================================================================================
1153 39.1M | 39.1M | 100 | 39.1M | /var/lib/snapd/snaps/snapd_21184.snap [Proc: 1] [Link: 1] [Open: 1]
1154 | snapfuse ( 125) |
1155 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1156 5.3M | 8.0M | 66 | 5.3M | /var/log/journal/758ca7c4e01db1a1cae9325f634ab22a/system.journal [Proc: 1] [Link: 1] [Open: 1]
1157 | systemd-journal ( 56) |
1158 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1159 5.2M | 5.2M | 100 | 5.2M | /home/iipeace/guider/guider/.guider.py.swp [Proc: 1] [Link: 1] [Open: 1]
1160 | vi ( 6732) |
1161 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1162 5.1M | 5.6M | 90 | 2.5M | /usr/bin/python3.10 [Proc: 2] [Link: 1] [Map: 2]
1163 | networkd-dispat ( 178) | unattended-upgr ( 341) |
1164 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1165 3.8M | 4.2M | 89 | 434.7K | /usr/lib/x86_64-linux-gnu/libcrypto.so.3 [Proc: 9] [Link: 1] [Map: 9]
1166 | systemd ( 1) | systemd-journal ( 56) | systemd-udevd ( 85) | systemd-network ( 172) |
1167 | systemd-logind ( 190) | udisksd ( 198) | systemd-resolve ( 262) | sshd ( 829) |
1168 | packagekitd ( 3858) |
1169 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1170 3.7M | 8.0M | 46 | 3.7M | /var/log/journal/758ca7c4e01db1a1cae9325f634ab22a/user-1000.journal [Proc: 1] [Link: 1] [Open: 1]
1171 | systemd-journal ( 56) |
1172 ----------------------------------------------------------------------------------------------------------------------------------------------------------
1173
1174 >>>
1175
1176 $ python3 guider/guider.py top -o guider.out
1177 $ python3 guider/guider.py draw guider.out
1178
1179 >>>
1180
1181 <img alt="graph" src="https://user-images.githubusercontent.com/15862689/67160607-9b1fc680-f38d-11e9-988e-5d90729d983e.png" width="100%" height="100%">
1182 <img alt="chart" src="https://user-images.githubusercontent.com/15862689/67160609-9bb85d00-f38d-11e9-9280-9ab649bb56b1.png" width="100%" height="100%">
1183
1184 >>>
1185
1186 # python3 guider/guider.py rec -s guider.dat
1187 # python3 guider/guider.py draw guider.dat
1188
1189 >>>
1190
1191 <img alt="timeline" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_timeline.png" width="100%" height="100%">
1192
1193 >>>
1194
1195 # python3 guider/guider.py utop -g testTask -H -o guider.out
1196 # python3 guider/guider.py drawflame guider.out
1197
1198 >>>
1199
1200 <img alt="flamegraph" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_flamegraph.png" width="100%" height="100%">
1201
1202 >>>
1203
1204 $ python3 guider/guider.py top -o test1.out
1205 $ python3 guider/guider.py top -o test2.out
1206 $ python3 guider/guider.py top -o test3.out
1207 $ python3 guider/guider.py drawavg "test1.out" "test2.out" "test3.out"
1208 $ python3 guider/guider.py drawavg "test*.out"
1209
1210 >>>
1211
1212 <img alt="drawavg" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_drawavg.svg" width="100%" height="100%">
1213
1214 >>>
1215
1216 $ python3 guider/guider.py req "https://www.google.com|https://www.naver.com" -R 1000 -o guider.out
1217 $ python3 guider/guider.py drawreq guider.out
1218
1219 >>>
1220
1221 <img alt="drawreq" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_drawreq.svg" width="100%" height="100%">
1222
1223 >>>
1224
1225 $ python3 guider/guider.py top -o test1.out
1226 $ python3 guider/guider.py top -o test2.out
1227 $ python3 guider/guider.py top -o test3.out
1228 $ python3 guider/guider.py drawviolin "test.out" "test2.out" "test3.out"
1229 $ python3 guider/guider.py drawviolin "test*.out"
1230
1231 >>>
1232
1233 <img alt="violingraph" src="https://github.com/iipeace/iipeace.github.io/blob/master/samples/guider_violingraph.png" width="100%" height="100%">
1234
1235 >>>
1236
1237 webservice
1238
1239 >>>
1240
1241 <img alt="dashboard" src="https://user-images.githubusercontent.com/15862689/67160178-0024ed80-f389-11e9-9a09-6a8eb96e2785.png" width="100%" height="100%">
1242
1243 How to use
1244 =======
1245
1246 ```
1247 To view a list of all commands supported by Guider, enter one of the following commands:
1248 $ python3 guider/guider.py --help
1249 $ python3 -m guider --help
1250 $ guider --help
1251
1252 To start tracing for all threads, use the following command:
1253 # python3 guider/guider.py rec -a
1254
1255 To start tracing for all threads, use the following command:
1256 $ python3 guider/guider.py top -a
1257
1258 To view options and examples for each command, enter a command in the following format:
1259 $ python3 guider/guider.py rec -h
1260 $ python3 guider/guider.py top -h
1261
1262 To view the output of Guider, visit the following link:
1263 - https://github.com/iipeace/guider/wiki
1264 ```
1265
1266
1267 Build & Installation
1268 =======
1269
1270 ```
1271 To install Guider using pip, enter the following commands:
1272 # pip3 install guider
1273 # pip3 install guider --no-deps
1274 # pip3 install guider --force-reinstall
1275
1276 After installation, run one of the following commands to start Guider:
1277 # python3 -m guider
1278 # guider
1279
1280 If you don't have pip on your system, you can download the source code from https://github.com/iipeace/guider, and then run the following command to start Guider:
1281 # python3 guider/guider.py
1282
1283 For faster and lighter operation, you can build and install Guider from the source code by running the following commands:
1284 # cd guider && make && make install
1285 ```
1286
1287 Pre-built versions of Guider are available at https://repology.org/project/guider/versions.
1288
1289 Kernel Configuration
1290 =======
1291
1292 ```
1293 Enable kernel options as below to take advantage of all profile features,
1294 And if CONFIG_STRICT_MEMORY_RWX is enabled then disable it
1295
1296 CONFIG_RING_BUFFER
1297 CONFIG_FTRACE
1298 CONFIG_TRACING
1299 CONFIG_TRACING_SUPPORT
1300 CONFIG_EVENT_TRACING
1301 CONFIG_NOP_TRACER
1302 CONFIG_TRACEPOINTS
1303 CONFIG_DYNAMIC_FTRACE
1304 CONFIG_HAVE_DYNAMIC_FTRACE
1305 CONFIG_FTRACE_SYSCALLS
1306 CONFIG_HAVE_SYSCALL_TRACEPOINTS
1307 CONFIG_TRACE_IRQFLAGS
1308 CONFIG_TRACE_IRQFLAGS_SUPPORT
1309
1310 CONFIG_STACKTRACE
1311 CONFIG_STACKTRACE_SUPPORT
1312 CONFIG_USER_STACKTRACE_SUPPORT
1313 CONFIG_FUNCTION_TRACER
1314 CONFIG_FUNCTION_GRAPH_TRACER
1315 CONFIG_UPROBES
1316 CONFIG_UPROBE_EVENT
1317 CONFIG_KPROBES
1318 CONFIG_KPROBE_EVENTS
1319
1320 CONFIG_TASKSTATS
1321 CONFIG_TASK_DELAY_ACCT
1322 CONFIG_TASK_XACCT
1323 CONFIG_TASK_IO_ACCOUNTING
1324 CONFIG_PERF_EVENTSĀ 
1325 CONFIG_HW_PERF_EVENT
1326 ```
1327
1328
1329 Help
1330 =======
1331
1332 ```
1333 Usage:
1334 $ guider COMMAND [OPTIONS] [--help]
1335
1336 COMMAND(153):
1337 [CONTROL] cgroup <Cgroup> (Linux)
1338 freeze <Thread> (Linux)
1339 hook <Function> (Linux)
1340 kill/tkill <Signal> (Linux/MacOS)
1341 limitcpu <CPU> (Linux)
1342 limitcpuset <CPU> (Linux)
1343 limitmem <Memory> (Linux)
1344 limitpid <Task> (Linux)
1345 limitread <I/O> (Linux)
1346 limitwrite <I/O> (Linux)
1347 pause <Thread> (Linux)
1348 remote <Command> (Linux)
1349 rlimit <Resource> (Linux)
1350 setafnt <Affinity> (Linux)
1351 setcpu <Clock> (Linux)
1352 setsched <Priority> (Linux)
1353
1354 [LOG] logand <Android> (Linux)
1355 logdlt <DLT> (Linux)
1356 logjrl <Journal> (Linux)
1357 logkmsg <Kernel> (Linux)
1358 logsys <Syslog> (Linux)
1359 logtrace <Ftrace> (Linux)
1360 printand <Android> (Linux)
1361 printdlt <DLT> (Linux/MacOS/Windows)
1362 printjrl <Journal> (Linux)
1363 printkmsg <Kernel> (Linux)
1364 printsyslog <Syslog> (Linux)
1365 printtrace <Ftrace> (Linux)
1366
1367 [MONITOR] atop <All> (Linux)
1368 bgtop <Background> (Linux/MacOS/Windows)
1369 btop <Function> (Linux)
1370 cgtop <Cgroup> (Linux)
1371 ctop <Threshold> (Linux/MacOS/Windows)
1372 dbustop <D-Bus> (Linux)
1373 disktop <Storage> (Linux/MacOS/Windows)
1374 dlttop <DLT> (Linux/MacOS)
1375 fetop <File> (Linux)
1376 ftop <File> (Linux/MacOS)
1377 irqtop <IRQ> (Linux)
1378 kftop <Function> (Linux)
1379 ktop <Function> (Linux)
1380 mtop <Memory> (Linux)
1381 ntop <Network> (Linux/MacOS/Windows)
1382 ptop <PMU> (Linux)
1383 pytop <Python> (Linux)
1384 rtop <JSON> (Linux/MacOS/Windows)
1385 slabtop <Slab> (Linux)
1386 stacktop <Stack> (Linux)
1387 systop <Syscall> (Linux)
1388 top <Process> (Linux/MacOS/Windows)
1389 trtop <Tree> (Linux)
1390 ttop <Thread> (Linux)
1391 utop <Function> (Linux)
1392 vtop <Memory> (Linux)
1393 wtop <WSS> (Linux)
1394
1395 [NETWORK] cli <Client> (Linux/MacOS/Windows)
1396 event <Event> (Linux)
1397 fserver <File> (Linux/MacOS/Windows)
1398 hserver <Http> (Linux/MacOS/Windows)
1399 list <List> (Linux/MacOS/Windows)
1400 send <UDP> (Linux/MacOS/Windows)
1401 server <Server> (Linux/MacOS)
1402 start <Signal> (Linux)
1403
1404 [PROFILE] filerec <File> (Linux)
1405 funcrec <Function> (Linux)
1406 genrec <System> (Linux)
1407 iorec <I/O> (Linux)
1408 mem <Page> (Linux)
1409 rec <Thread> (Linux)
1410 report <Report> (Linux)
1411 sysrec <Syscall> (Linux)
1412
1413 [TEST] cputest <CPU> (Linux/MacOS/Windows)
1414 iotest <Storage> (Linux/MacOS/Windows)
1415 memtest <Memory> (Linux/MacOS/Windows)
1416 nettest <Network> (Linux)
1417
1418 [TRACE] btrace <Function> (Linux)
1419 leaktrace <Leak> (Linux)
1420 mtrace <Memory> (Linux)
1421 pytrace <Python> (Linux)
1422 sigtrace <Signal> (Linux)
1423 strace <Syscall> (Linux)
1424 utrace <Function> (Linux)
1425
1426 [UTIL] addr2sym <Symbol> (Linux/MacOS/Windows)
1427 checkdup <Page> (Linux)
1428 comp <Compress> (Linux/MacOS/Windows)
1429 decomp <Decompress> (Linux/MacOS/Windows)
1430 dirdiff <Dir> (Linux/MacOS/Windows)
1431 dump <Memory> (Linux)
1432 exec <Command> (Linux/MacOS/Windows)
1433 fadvise <File> (Linux)
1434 flush <Memory> (Linux)
1435 getafnt <Affinity> (Linux)
1436 getpid <PID> (Linux)
1437 less <Pager> (Linux/MacOS/Windows)
1438 merge <File> (Linux/MacOS/Windows)
1439 mkcache <Cache> (Linux/MacOS/Windows)
1440 mount <Mount> (Linux)
1441 ping <ICMP> (Linux/MacOS/Windows)
1442 print <File> (Linux/MacOS/Windows)
1443 printbind <Function> (Linux)
1444 printcg <Cgroup> (Linux)
1445 printdbus <D-Bus> (Linux)
1446 printdbusintro <D-Bus> (Linux)
1447 printdbusstat <D-Bus> (Linux)
1448 printdbussub <D-Bus> (Linux)
1449 printdir <Dir> (Linux/MacOS/Windows)
1450 printenv <Env> (Linux)
1451 printext <Ext4> (Linux/MacOS/Windows)
1452 printinfo <System> (Linux)
1453 printkconf <kernel> (Linux)
1454 printns <Namespace> (Linux)
1455 printsdfile <Systemd> (Linux)
1456 printsdinfo <Systemd> (Linux)
1457 printsdunit <Systemd> (Linux)
1458 printsig <Signal> (Linux)
1459 printslab <Slab> (Linux)
1460 printvma <Vmalloc> (Linux)
1461 pstree <Process> (Linux/MacOS/Windows)
1462 readahead <File> (Linux)
1463 readelf <File> (Linux/MacOS/Windows)
1464 req <URL> (Linux/MacOS/Windows)
1465 split <File> (Linux/MacOS/Windows)
1466 strings <Text> (Linux/MacOS/Windows)
1467 sym2addr <Address> (Linux/MacOS/Windows)
1468 sync <File> (Linux)
1469 sysrq <sysrq> (Linux)
1470 systat <Status> (Linux)
1471 topdiff <Diff> (Linux/MacOS/Windows)
1472 topsum <Summary> (Linux/MacOS/Windows)
1473 umount <Unmount> (Linux)
1474 watch <File> (Linux)
1475
1476 [VISUAL] convert <Text> (Linux/MacOS/Windows)
1477 draw <System> (Linux/MacOS/Windows)
1478 drawavg <Average> (Linux/MacOS/Windows)
1479 drawbitmap <Bitmap> (Linux/MacOS/Windows)
1480 drawcpu <CPU> (Linux/MacOS/Windows)
1481 drawcpuavg <CPU> (Linux/MacOS/Windows)
1482 drawdelay <Delay> (Linux/MacOS/Windows)
1483 drawflame <Function> (Linux/MacOS/Windows)
1484 drawhist <Histogram> (Linux/MacOS/Windows)
1485 drawio <I/O> (Linux/MacOS/Windows)
1486 drawleak <Leak> (Linux/MacOS/Windows)
1487 drawmem <Memory> (Linux/MacOS/Windows)
1488 drawmemavg <Memory> (Linux/MacOS/Windows)
1489 drawpri <Prio> (Linux/MacOS/Windows)
1490 drawreq <URL> (Linux/MacOS/Windows)
1491 drawrss <RSS> (Linux/MacOS/Windows)
1492 drawrssavg <RSS> (Linux/MacOS/Windows)
1493 drawstack <System> (Linux/MacOS/Windows)
1494 drawtime <Timeline> (Linux/MacOS/Windows)
1495 drawviolin <Data> (Linux/MacOS/Windows)
1496 drawvss <VSS> (Linux/MacOS/Windows)
1497 drawvssavg <VSS> (Linux/MacOS/Windows)
1498
1499 FILE:
1500 Profile file (e.g. guider.dat)
1501 Report file (e.g. guider.out)
1502
1503 Options:
1504 Check COMMAND with --help (e.g. guider top --help)
1505
1506 ```
1507
1508