Commit 4553c43
committed
perf report: Display pregress bar on redirected pipe data
It's possible to save pipe output of perf record into a file.
$ perf record -o- ... > pipe.data
And you can use the data same as the normal perf data.
$ perf report -i pipe.data
In that case, perf tools will treat the input as a pipe, but it can get
the total size of the input. This means it can show the progress bar
unlike the normal pipe input (which doesn't know the total size in
advance).
While at it, fix the string in __perf_session__process_dir_events().
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240627181916.1202110-1-namhyung@kernel.org1 parent e8b86f0 commit 4553c43
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2050 | 2050 | | |
2051 | 2051 | | |
2052 | 2052 | | |
| 2053 | + | |
2053 | 2054 | | |
2054 | 2055 | | |
2055 | 2056 | | |
2056 | 2057 | | |
2057 | 2058 | | |
2058 | 2059 | | |
2059 | 2060 | | |
| 2061 | + | |
2060 | 2062 | | |
2061 | 2063 | | |
2062 | 2064 | | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
2063 | 2076 | | |
2064 | 2077 | | |
2065 | 2078 | | |
| |||
2131 | 2144 | | |
2132 | 2145 | | |
2133 | 2146 | | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
2134 | 2150 | | |
2135 | 2151 | | |
2136 | 2152 | | |
| |||
2144 | 2160 | | |
2145 | 2161 | | |
2146 | 2162 | | |
| 2163 | + | |
| 2164 | + | |
2147 | 2165 | | |
2148 | 2166 | | |
2149 | 2167 | | |
| |||
2523 | 2541 | | |
2524 | 2542 | | |
2525 | 2543 | | |
2526 | | - | |
| 2544 | + | |
2527 | 2545 | | |
2528 | 2546 | | |
2529 | 2547 | | |
| |||
0 commit comments