Commit 54e7338
sysprof: fix a message with stop without run
When sysprof is not started, the function `misc.sysprof.stop()`
reports that the profiler is already running:
| $ ./src/luajit -e 'print(misc.sysprof.stop())'
| nil profiler is running already 22
The patch fixes that:
| $ ./src/luajit -e 'print(misc.sysprof.stop())'
| nil profiler is not running 22
Follows up tarantool/tarantool#781
Reviewed-by: Sergey Kaplun <skaplun@tarantool.org>
Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>
(cherry picked from commit 441405c)1 parent b3338d8 commit 54e7338
File tree
2 files changed
+10
-3
lines changed- src
- test/tarantool-tests/profilers
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
340 | 345 | | |
| 346 | + | |
341 | 347 | | |
342 | 348 | | |
343 | 349 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
0 commit comments