Slide 1

Slide 1 text

From 0 to 100: Fine-tune all the things! Pablo Guardiola Mapbox @Guardiola31337

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Mapbox Navigation SDK

Slide 4

Slide 4 text

Mapbox Navigation SDK ● Maps ● Location Services

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Mapbox Navigation SDK ● Maps ● Location Services ● Routing

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Mapbox Navigation SDK ● Maps ● Location Services ● Routing ● Processing

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Track performance over time as changes land in the SDK.

Slide 11

Slide 11 text

Which performance areas?

Slide 12

Slide 12 text

Which performance areas? ● CPU

Slide 13

Slide 13 text

Which performance areas? ● CPU ● RAM

Slide 14

Slide 14 text

Which performance areas? ● CPU ● RAM ● Bandwidth

Slide 15

Slide 15 text

Which performance areas? ● CPU ● RAM ● Bandwidth ● Battery

Slide 16

Slide 16 text

Android Studio Profiler How does this help us?

Slide 17

Slide 17 text

Android Studio Profiler How does this help us? ● Real-time, readable data

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Android Studio Profiler How does this help us? ● Real-time, readable data ● Session recording

Slide 20

Slide 20 text

Android Studio Profiler How does this help us? ● Real-time, readable data ● Session recording ● Detailed analysis

Slide 21

Slide 21 text

Android Studio Profiler How does this help us? ● Real-time, readable data ● Session recording ● Detailed analysis ● Initial signal

Slide 22

Slide 22 text

Android Studio Profiler Does it solve our problem?

Slide 23

Slide 23 text

Android Studio Profiler Does it solve our problem? ● Cannot download or send any recorded data

Slide 24

Slide 24 text

Android Studio Profiler Does it solve our problem? ● Cannot download or send any recorded data ● Android Studio resource consumption

Slide 25

Slide 25 text

Android Studio Profiler Does it solve our problem? ● Cannot download or send any recorded data ● Android Studio resource consumption ● API 21+

Slide 26

Slide 26 text

Custom Test Rules How does this help us?

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Custom Test Rules How does this help us? ● Reproducible

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

Custom Test Rules How does this help us? ● Reproducible ● Record and store data

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Custom Test Rules How does this help us? ● Reproducible ● Record and store data ● Device farm

Slide 35

Slide 35 text

Custom Test Rules Does it solve our problem?

Slide 36

Slide 36 text

Custom Test Rules Does it solve our problem? ● Needs reliable UI test

Slide 37

Slide 37 text

Custom Test Rules Does it solve our problem? ● Needs reliable UI test ● Takes a lot of time

Slide 38

Slide 38 text

Custom Test Rules Does it solve our problem? ● Takes a lot of time ● Needs reliable UI test ● dumpsys output isn’t easily parsed

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

Custom Test Rules Does it solve our problem? ● Takes a lot of time ● Needs reliable UI test ● dumpsys output isn’t easily parsed ● Output data can be unreliable

Slide 41

Slide 41 text

Production Telemetry How does this help us?

Slide 42

Slide 42 text

Production Telemetry How does this help us? ● Signal from “real world” usage

Slide 43

Slide 43 text

Production Telemetry How does this help us? ● Signal from “real world” usage ● Larger data pool

Slide 44

Slide 44 text

Production Telemetry How does this help us? ● Signal from “real world” usage ● Larger data pool ● More devices

Slide 45

Slide 45 text

Production Telemetry Does it solve our problem?

Slide 46

Slide 46 text

Production Telemetry Does it solve our problem? ● Production environment

Slide 47

Slide 47 text

Production Telemetry Does it solve our problem? ● Production environment ● Overhead of metric itself

Slide 48

Slide 48 text

Production Telemetry Does it solve our problem? ● Production environment ● Overhead of metric itself ● Data consumption

Slide 49

Slide 49 text

Production Telemetry Does it solve our problem? ● Production environment ● Overhead of metric itself ● Data consumption ● Data normalization

Slide 50

Slide 50 text

Process

Slide 51

Slide 51 text

Process Test suite

Slide 52

Slide 52 text

Process Test suite @Rules Controlled routes Data generation

Slide 53

Slide 53 text

Process Test suite @Rules Controlled routes Data generation Data processing

Slide 54

Slide 54 text

Process Test suite @Rules Controlled routes Data generation Data processing Retrieve data Parse data Send data

Slide 55

Slide 55 text

Process Test suite @Rules Controlled routes Data generation Data processing Retrieve data Parse data Send data Data analysis

Slide 56

Slide 56 text

Process Test suite @Rules Controlled routes Data generation Data processing Retrieve data Parse data Send data Data analysis Query data Filter out data Present results

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Pipeline

Slide 59

Slide 59 text

Pipeline Preparation

Slide 60

Slide 60 text

Pipeline Preparation Trigger CI Pull SDK code Build SDK Assemble apps

Slide 61

Slide 61 text

Pipeline Preparation Trigger CI Pull SDK code Build SDK AWS Device Farm Assemble apps

Slide 62

Slide 62 text

Pipeline Preparation Trigger CI Pull SDK code Build SDK AWS Device Farm Assemble apps Upload apps Run tests Download artifacts Completed check

Slide 63

Slide 63 text

Pipeline Preparation Trigger CI Pull SDK code Build SDK AWS Device Farm Assemble apps Upload apps Run tests Download artifacts Completed check Scripts

Slide 64

Slide 64 text

Pipeline Preparation Trigger CI Pull SDK code Build SDK AWS Device Farm Assemble apps Upload apps Run tests Download artifacts Parse data Publish data Completed check Scripts

Slide 65

Slide 65 text

Pipeline Preparation Trigger CI Pull SDK code Build SDK AWS Device Farm Assemble apps Upload apps Run tests Mode Download artifacts Parse data Publish data Completed check Scripts

Slide 66

Slide 66 text

Pipeline Preparation Trigger CI Pull SDK code Build SDK AWS Device Farm Assemble apps Upload apps Run tests Mode Download artifacts Parse data Publish data Completed check SQL (Presto) Build reports Scripts

Slide 67

Slide 67 text

What’s next?

Slide 68

Slide 68 text

What’s next? ● More automation

Slide 69

Slide 69 text

What’s next? ● More automation ● Triggers / Thresholds

Slide 70

Slide 70 text

What’s next? ● More automation ● Triggers / Thresholds ● Feature flags

Slide 71

Slide 71 text

Performance Takeaways

Slide 72

Slide 72 text

Performance Takeaways ● Important

Slide 73

Slide 73 text

Performance Takeaways ● Important ● Tricky

Slide 74

Slide 74 text

Performance Takeaways ● Important ● Tricky ● On-going effort

Slide 75

Slide 75 text

Performance Takeaways ● Important ● Tricky ● On-going effort ● Good amount of data

Slide 76

Slide 76 text

Questions?

Slide 77

Slide 77 text

We’re hiring!

Slide 78

Slide 78 text

Thanks! Pablo Guardiola @Guardiola31337