Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Xiao-Feng Li
xiaofeng.li@gmail.com
Oct, 2011
Thanks to Greg Zhu and Ke Chen
Summary
Android Workload Suite (AWS) is an engineering
tool for Android software stack measurement
It uses the software stack metrics to measure the
interaction scenarios
2011-11-23
Agenda
User interactions measurement
Interaction scenarios definition
Case studies
Summary
Information
2011-11-23
A well-established methodology
An engineering workload suite
An analysis/tuning toolkit
Sightings/requests/feedbacks from PECA/IXR, xPGs,
developers, users, etc.
2011-11-23
Target
Response
Screen
transition
Object
movement
interaction
Device
User
2011-11-23
object)
subject)
2011-11-23
User
AWS usages
Drive and validate Android optimizations
Support comparative and competitive analysis
2011-11-23
AWS
AWS 2.0
Suite
Workload
#Scenarios
Components
Browser
Media
Graphics
Productivity
Touch
Sensors
Built-in apps
Task management
2011-11-23
Agenda
User interactions measurement
Interaction scenarios definition
Case studies
Summary
2011-11-23
2011-11-23
10
Information &
Content
Communication
Basic
accessibility
2011-11-23
11
2011-11-23
12
Smaller size
Games are cartoon or lightweight-animation based
Relatively simple games with simple sensor controls
Many accelerometer-based games
Shake to operate (vs. gyroscope-based with Tablet)
2011-11-23
13
2011-11-23
14
Communications
Rendering:
Task management
2011-11-23
15
Task management
App launch, Task switch, Multi tasking
Responsiveness (time to launch/exit), smoothness,
coherency, accuracy
2011-11-23
16
Agenda
User interactions measurement
Interaction scenarios definition
Case studies
Summary
2011-11-23
17
Launch
browser
(loading time)
Input URL
(responsiven
ess)
webpage
loading
(loading time)
Read
webpage
Open
new tab
Scroll/Fling
/Zoom
webpage
(responsiven
ess,
smoothness)
Exit
browser
(loading time)
Switch
tab
(responsiven
ess)
(responsiven
ess)
Task management
2011-11-23
18
Seek
forward/backward
while playing
(seek response time)
Exit player
(unloading time)
Time
Normal playback
(Smoothness,
dropped frames)
User operations
Pause/Resume
(resume response
time)
Task management
2011-11-23
19
Agenda
User interactions measurement
Interaction scenarios definition
Case studies
Summary
2011-11-23
20
2011-11-23
21
Workloads Construction
Key is to map user interactions to system
behavior
Purpose is to assist software optimization instead of
simulating user behavior
Kinds of workloads
2011-09-07
22
Kinds of Workloads
Input
Activity 1
Activity 2
Service 1
Service 2
1. Standalone workload
Inp
ut
2. Micro workload
Activity
1
Activity
2
Service
1
Service
2
out
put
3. Measurement tool
Inp
ut
output
Inp
ut
Activity
1
Activity
2
Service
1
Service
2
Activity
1
Activity
2
Service
1
Service
2
out
put
4. Scenario driver
Activity
1
Activity
2
Service
1
Service
2
out
put
Inp
ut
2011-11-23
out
put
23
2011-11-23
24
Input-Gestures
Input
driver
Event
dev file
Event
hub
Input
dispatcher
app
Typically 200Hz
sampling rate
Physical latency
Software latency
2011-11-23
25
1
24
47
70
93
116
139
162
185
208
231
254
277
300
323
346
369
392
415
438
461
484
507
530
553
576
599
622
645
668
691
714
737
760
783
806
829
852
875
898
921
1
25
49
73
97
121
145
169
193
217
241
265
289
313
337
361
385
409
433
457
481
505
529
553
577
601
625
649
673
697
721
745
769
793
817
841
865
889
913
Device A
100
90
80
70
60
50
40
30
20
10
0
Time (ms)
Device B
Time (ms)
2011-11-23
26
Browser events
Event2
Event1
Event3
EventX
Event2/3
Frame1
EventY
Event k
Frame2
Time
2011-11-23
27
2011-11-23
28
2011-11-23
29
Agenda
User interactions measurement
Interaction scenarios definition
Case studies
Summary
2011-11-23
30
2011-11-23
31
1.finger starts
Time T3
P2
2. content starts
to move
P3
3. finger moves,
content moves
4. finger releases
2011-11-23
32
Smoothness
How smooth the browser animates the scroll
2011-11-23
33
EventM
EventN
EventX
EventY
Browser events
ACTION
DOWN
Browser drawing
ACTION
MOVE
ACTION
MOVE
ACTION
MOVE
Frame1
Time
2011-11-23
34
EventM
EventN
EventX
EventY
Browser events
ACTION
DOWN
ACTION
MOVE
ACTION
MOVE
Browser drawing
ACTION
MOVE
Frame1
Time
Response Time
First frame
drawn time
2011-11-23
35
Smoothness Measurement
Input raw events
.
EventX
EventY
EventZ
Browser events
ACTION
MOVE
ACTION
MOVE
ACTION
UP
Browser drawing
First
Frame
Frame m
Frame n
Last
frame
Time
T1
T2
2011-11-23
36
Browser events
Event2
Event1
Browser drawing
Event3
EventX
Event2/3
Frame1
EventY
Event k
Frame2
Time
2011-11-23
37
Results Repeatability
Standard scroll gesture set
generated by the InputGestures tool
Scroll up 20 times, down 20
times
Events are transformed for
different devices
gesture duration:
900ms
gesture duration:
900ms
2011-11-23
38
Workload Usage
Support built-in
and self-built
browser
Support scenario
selection
Support user input
webpage address
Agenda
User interactions measurement
Interaction scenarios definition
Case studies
Summary
2011-11-23
41
Summary
Android Workload Suite (AWS) is an engineering
tool for Android software stack measurement
It uses the software stack metrics to measure the
interaction scenarios
2011-11-23
42