Re: [PATCH] perf util: Refactor time range parsing code

2019-02-28 Thread Jin, Yao
On 3/1/2019 1:57 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Feb 28, 2019 at 10:30:09PM +0800, Jin Yao escreveu: Jiri points out that we don't need any time checking and time string parsing if the --time option is not set. That makes sense. This patch refactors the time range parsing code, m

Re: [PATCH] perf util: Refactor time range parsing code

2019-02-28 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 10:30:09PM +0800, Jin Yao escreveu: > Jiri points out that we don't need any time checking and time string > parsing if the --time option is not set. That makes sense. > > This patch refactors the time range parsing code, move the duplicated > code from perf report and perf

[PATCH] perf util: Refactor time range parsing code

2019-02-27 Thread Jin Yao
Jiri points out that we don't need any time checking and time string parsing if the --time option is not set. That makes sense. This patch refactors the time range parsing code, move the duplicated code from perf report and perf script to time_utils and check if --time option is set before parsing