Skip to content

sof_perf_analyzer: add skip-to-first-trace option - #1100

Merged
aiChaoSONG merged 3 commits into
thesofproject:mainfrom
aiChaoSONG:perf_fix
Sep 7, 2023
Merged

aiChaoSONG merged 3 commits into
thesofproject:mainfrom
aiChaoSONG:perf_fix

Conversation

@aiChaoSONG

Copy link
Copy Markdown

In CI test, some traces from previous test case will apprear in the mtrace of current test case, this is a know issue.

Previously, we always skip to the first valid trace of this test case, this could raise trouble for developer use of this script.

This patch adds skip-to-first-trace option, for CI test, this option should be set (True), and for developer use, this option should be left as it is (False).

@aiChaoSONG
aiChaoSONG requested a review from singalsu September 6, 2023 06:18
singalsu
singalsu previously approved these changes Sep 6, 2023

@singalsu singalsu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch fixes the problem that I had. Thank you very much!

@marc-hb marc-hb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pylint warning may go away if you drop the too broad except?

Comment thread tools/sof_perf_analyzer.py Resolved
Comment thread tools/sof_perf_analyzer.py Resolved
Comment thread tools/sof_perf_analyzer.py Resolved
In CI test, some traces from previous test case will
apprear in the mtrace of current test case, this is
a know issue.

Previously, we always skip to the first valid trace
of this test case, this could raise trouble for developer
use of this script.

This patch adds skip-to-first-trace option, for CI
test, this option should be set (True), and for developer
use, this option should be left as it is (False).

Signed-off-by: Chao Song <chao.song@linux.intel.com>
marc-hb
marc-hb previously approved these changes Sep 7, 2023

@marc-hb marc-hb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could you add a blank line before 190?

Note: still a Github Draft

Comment thread case-lib/lib.sh Resolved
Chao Song added 2 commits September 7, 2023 12:20
Due to a known issue in CI test, some traces from
previous test case will apprear in the mtrace of
current test case. Set skip-to-first-trace option
to skip those traces.

Signed-off-by: Chao Song <chao.song@linux.intel.com>
The skip_to_first_trace() function either return a value
or raise an exception. Currently there is no good way
to do type annotation for such function, so remove its
type annotation.

Signed-off-by: Chao Song <chao.song@linux.intel.com>
@aiChaoSONG aiChaoSONG changed the title [skip ci]sof_perf_analyzer: add skip-to-first-trace option sof_perf_analyzer: add skip-to-first-trace option Sep 7, 2023
@aiChaoSONG
aiChaoSONG marked this pull request as ready for review September 7, 2023 04:25
@aiChaoSONG
aiChaoSONG requested a review from a team as a code owner September 7, 2023 04:25
@aiChaoSONG

Copy link
Copy Markdown
Author

Thanks Marc, the test is good, see internal result 31419, merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants