Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
emper-io-eval
Commits
58775dc9
Commit
58775dc9
authored
Nov 30, 2021
by
Florian Fischer
Browse files
eval/perf: run perf on the host
parent
c3f36957
Pipeline
#73073
passed with stage
in 1 minute and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bench/server.py
View file @
58775dc9
...
...
@@ -77,6 +77,9 @@ class Server(subprocess.Popen):
perf_record_cmd
=
perf
.
PERF_RECORD_CMD
.
format
(
pid
=
self
.
get_server_pid
(),
output
=
perf_record_out
)
if
remote_cmd
:
perf_record_cmd
=
f
'
{
remote_cmd
}
{
perf_record_cmd
}
'
log
.
debug
(
'start perf record process using: %s'
,
perf_record_cmd
)
self
.
perf_record_popen
=
subprocess
.
Popen
(
perf_record_cmd
.
split
())
...
...
@@ -92,6 +95,9 @@ class Server(subprocess.Popen):
events
=
perf_counters
,
output
=
perf_stat_out
)
if
remote_cmd
:
perf_stat_cmd
=
f
'
{
remote_cmd
}
{
perf_stat_cmd
}
'
log
.
debug
(
'start perf stat process using: %s'
,
perf_stat_cmd
)
self
.
perf_stat_popen
=
subprocess
.
Popen
(
perf_stat_cmd
.
split
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment