No easy way to profile the vis tool.
Bug #1279944 reported by
Thomi Richards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
High
|
Unassigned | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The autopilot vis tool is slow - we must be making some blocking calls somewhere. Unfortunately, due to the way we launch the vis tool, you cannot enable profiling using the standard:
python -m cProfile -o vis.profile <scriptname>
So we should add support to enable tracing the vis tool as a command line option. something like:
autopilot vis --enable-tracing <output_file>
should do the trick...
Related branches
lp:~thomir-deactivatedaccount/autopilot/trunk-add-vis-profile-option
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Christopher Lee (community): Approve
-
Diff: 1580 lines (+1038/-216)11 files modifiedautopilot/__init__.py (+12/-0)
autopilot/input/_common.py (+12/-2)
autopilot/input/_uinput.py (+329/-203)
autopilot/run.py (+15/-1)
autopilot/tests/functional/test_ap_apps.py (+1/-0)
autopilot/tests/functional/test_input_stack.py (+6/-5)
autopilot/tests/unit/test_command_line_args.py (+20/-0)
autopilot/tests/unit/test_input.py (+583/-3)
autopilot/tests/unit/test_run.py (+56/-0)
autopilot/vis/__init__.py (+2/-2)
debian/control (+2/-0)
Changed in autopilot: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
This bug was fixed in the package autopilot - 1.4+14. 04.20140219- 0ubuntu1
--------------- 04.20140219- 0ubuntu1) trusty; urgency=low
autopilot (1.4+14.
[ Thomi Richards ]
* Vis tool improvements for self-testing: Added ability for vis tool
to be run with testability enabled, and able to be profiled. (LP:
#1279944)
* Add a decorator that makes it easy to write compatible __repr__
functions in both python 2.x and 3.x.
[ Leo Arias ]
* Refactor the _uinput module to avoid side-effects when we import it.
* Added Mouse, Touch and Pointer drags with rate. (LP: #1257055)
[ Max Brustkern ]
* Handle trailing slashes on suites. (LP: #1199088)
[ Christopher Lee ] bamf_geometry_ gives_reliable_ results. (LP: #1281253)
* Fix import error in functional test
test_
[ CI bot ] line_args issues with python 3.4. (LP: #1281733)
* Fix test_command_
-- Ubuntu daily release <email address hidden> Wed, 19 Feb 2014 21:41:38 +0000