Mir

Merge lp:~afrantzis/mir/mir-perf-framework-package into lp:mir

Proposed by Alexandros Frantzis
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 2725
Proposed branch: lp:~afrantzis/mir/mir-perf-framework-package
Merge into: lp:mir
Prerequisite: lp:~afrantzis/mir/touch-event-latency-benchmark
Diff against target: 143 lines (+60/-3)
9 files modified
benchmarks/CMakeLists.txt (+16/-0)
benchmarks/key_event_latency.py (+2/-0)
benchmarks/mir_perf_framework_setup.py (+5/-0)
benchmarks/nested_client_to_display_buffer_latency.py (+2/-0)
benchmarks/touch_event_latency.py (+2/-0)
debian/control (+19/-0)
debian/python3-mir-perf-framework.install (+3/-0)
debian/rules (+1/-1)
doc/performance_framework.md (+10/-2)
To merge this branch: bzr merge lp:~afrantzis/mir/mir-perf-framework-package
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Gerry Boland (community) Approve
Daniel van Vugt Approve
Kevin DuBois (community) Approve
Review via email: mp+263672@code.launchpad.net

Commit message

benchmarks: Package the Mir performance framework

Description of the change

benchmarks: Package the Mir performance framework

This MP introduces the python3-mir-perf-framework package which includes the framework itself and also a few samples scripts placed in /usr/share/mir-perf-framework.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

lgtm

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) :
review: Approve
Revision history for this message
Gerry Boland (gerboland) wrote :

+1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'benchmarks/CMakeLists.txt'
--- benchmarks/CMakeLists.txt 2015-04-28 07:54:10 +0000
+++ benchmarks/CMakeLists.txt 2015-07-02 15:19:49 +0000
@@ -18,3 +18,19 @@
18target_link_libraries(benchmark_multiplexing_dispatchable18target_link_libraries(benchmark_multiplexing_dispatchable
19 mircommon19 mircommon
20)20)
21
22# Note: We need to write \$ENV{DESTDIR} (note the \$) to make
23# CMake replace the DESTDIR variable at installation time rather
24# than configuration time
25install(CODE "execute_process(COMMAND python3 mir_perf_framework_setup.py install -f --prefix=${CMAKE_INSTALL_PREFIX} --root=\$ENV{DESTDIR} --install-layout=deb --no-compile WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})")
26
27set(MIR_PERF_SCRIPTS
28 key_event_latency.py
29 nested_client_to_display_buffer_latency.py
30 touch_event_latency.py
31)
32
33install(
34 FILES ${MIR_PERF_SCRIPTS}
35 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mir-perf-framework
36)
2137
=== modified file 'benchmarks/key_event_latency.py'
--- benchmarks/key_event_latency.py 2015-06-26 11:31:44 +0000
+++ benchmarks/key_event_latency.py 2015-07-02 15:19:49 +0000
@@ -1,3 +1,5 @@
1#!/usr/bin/python3
2
1from mir_perf_framework import PerformanceTest, Server, Client3from mir_perf_framework import PerformanceTest, Server, Client
2import time4import time
3import evdev5import evdev
46
=== added file 'benchmarks/mir_perf_framework_setup.py'
--- benchmarks/mir_perf_framework_setup.py 1970-01-01 00:00:00 +0000
+++ benchmarks/mir_perf_framework_setup.py 2015-07-02 15:19:49 +0000
@@ -0,0 +1,5 @@
1from distutils.core import setup
2
3setup(name='mir_perf_framework',
4 version='0.1',
5 packages=['mir_perf_framework'])
06
=== modified file 'benchmarks/nested_client_to_display_buffer_latency.py'
--- benchmarks/nested_client_to_display_buffer_latency.py 2015-06-26 08:45:29 +0000
+++ benchmarks/nested_client_to_display_buffer_latency.py 2015-07-02 15:19:49 +0000
@@ -1,3 +1,5 @@
1#!/usr/bin/python3
2
1from mir_perf_framework import PerformanceTest, Server, Client3from mir_perf_framework import PerformanceTest, Server, Client
2import time4import time
3import statistics5import statistics
46
=== modified file 'benchmarks/touch_event_latency.py'
--- benchmarks/touch_event_latency.py 2015-07-02 15:19:49 +0000
+++ benchmarks/touch_event_latency.py 2015-07-02 15:19:49 +0000
@@ -1,3 +1,5 @@
1#!/usr/bin/python3
2
1from mir_perf_framework import PerformanceTest, Server, Client3from mir_perf_framework import PerformanceTest, Server, Client
2import time4import time
3import evdev5import evdev
46
=== modified file 'debian/control'
--- debian/control 2015-06-29 03:29:31 +0000
+++ debian/control 2015-07-02 15:19:49 +0000
@@ -41,6 +41,8 @@
41 abi-compliance-checker,41 abi-compliance-checker,
42 libevdev-dev,42 libevdev-dev,
43 uuid-dev,43 uuid-dev,
44 python3,
45 dh-python,
44Standards-Version: 3.9.446Standards-Version: 3.9.4
45Homepage: https://launchpad.net/mir47Homepage: https://launchpad.net/mir
46# If you aren't a member of ~mir-team but need to upload packaging changes,48# If you aren't a member of ~mir-team but need to upload packaging changes,
@@ -395,3 +397,20 @@
395 .397 .
396 This package depends on a full set of graphics drivers for running Mir on top398 This package depends on a full set of graphics drivers for running Mir on top
397 of an existing Android driver stack.399 of an existing Android driver stack.
400
401Package: python3-mir-perf-framework
402Section: python
403Architecture: all
404Pre-Depends: ${misc:Pre-Depends}
405Depends: ${misc:Depends},
406 ${python3:Depends},
407 python3-evdev,
408 python3-babeltrace,
409 mir-demos
410Description: Display server for Ubuntu - performance testing framework
411 Mir is a display server running on linux systems, with a focus on efficiency,
412 robust operation and a well-defined driver model.
413 .
414 This package contains a python3 framework to facilitate writing performance
415 tests for Mir. It also contains a few interesting performance tests written
416 using the framework.
398417
=== added file 'debian/python3-mir-perf-framework.install'
--- debian/python3-mir-perf-framework.install 1970-01-01 00:00:00 +0000
+++ debian/python3-mir-perf-framework.install 2015-07-02 15:19:49 +0000
@@ -0,0 +1,3 @@
1usr/lib/python3/dist-packages/mir_perf_framework/*.py
2usr/lib/python3/dist-packages/*.egg-info
3usr/share/mir-perf-framework
04
=== modified file 'debian/rules'
--- debian/rules 2015-06-18 02:46:16 +0000
+++ debian/rules 2015-07-02 15:19:49 +0000
@@ -8,7 +8,7 @@
8export DPKG_GENSYMBOLS_CHECK_LEVEL = 48export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
99
10%:10%:
11 dh $@ --parallel --fail-missing11 dh $@ --parallel --fail-missing --with python3
1212
13# Enable verbose debugging output from the testsuite13# Enable verbose debugging output from the testsuite
14export MIR_SERVER_LOGGING = on14export MIR_SERVER_LOGGING = on
1515
=== modified file 'doc/performance_framework.md'
--- doc/performance_framework.md 2015-07-02 15:19:49 +0000
+++ doc/performance_framework.md 2015-07-02 15:19:49 +0000
@@ -13,11 +13,19 @@
13To run a test, just execute the python3 script containing it.13To run a test, just execute the python3 script containing it.
1414
15We need to ensure that the Mir performance framework can be found by python.15We need to ensure that the Mir performance framework can be found by python.
16To do so, add the directory containing the mir_perf_framework/ directory (i.e.,16If you have installed the Mir performance framework to one of the standard
17its parent directory) to the PYTHONPATH env. variable:17python3 library locations (e.g., with make install or a package installation),
18then the framework should be automatically detected. If you are using the
19framework from within the source tree you need to add the directory containing
20the mir_perf_framework/ directory (i.e., its parent directory) to the
21PYTHONPATH env. variable:
1822
19 sudo PYTHONPATH=/path/to/mir/benchmarks python3 testscript.py23 sudo PYTHONPATH=/path/to/mir/benchmarks python3 testscript.py
2024
25If you are using an Ubuntu system the framework comes pre-packaged in the
26python3-mir-perf-framework package, which, besides the framework itself,
27also installs a few interesting tests in /usr/share/mir-perf-framework/.
28
21Writing test scripts29Writing test scripts
22--------------------30--------------------
2331

Subscribers

People subscribed via source and target branches