Upload
laurent-jayr
View
602
Download
1
Embed Size (px)
DESCRIPTION
Introducing Monocle New profiling tool for Flash / AIR content
Citation preview
2012 © Trivadis
BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN
Introducing Monocle
Profiling Flash/AIR mobile app
Adobe User Group Geneva
University of Geneva
14th November 2012
Laurent Jayr Application Development Consultant
29.09.2012
Mobile Application Development with AIR 1
2012 © Trivadis
1. Introduction
2. Flash / AIR mobile platform in 2012
3. Monocle: a real profiler
4. Monocle for mobile in action
2
2012 © Trivadis
Let’s start with a demonstration…
3
2012 © Trivadis
How does this demo work?
4
• Peer-to-Peer channel available
since Flash Player version 10.1
2012 © Trivadis
How does this demo work?
• Peer-to-Peer channel available
since Flash Player version 10.1
• With multicasting, data is
broadcasted across all P2P
mesh (audio, video, binary files,
pure data…)
5
2012 © Trivadis
6
1. Introduction
2. Flash / AIR mobile platform in 2012
3. Monocle: a real profiler
4. Monocle for mobile in action
2012 © Trivadis
The Flash / AIR mobile platform in 2011
7
Mobile Flash Player (inside browser)
• Android + BlackBerry Playbook
• not allowed for iOS
Mobile AIR runtime (outside browser)
• Android
• iOS
• BlackBerry Playbook
• Connected TV…
Browser
Mobile APP
2012 © Trivadis
The Flash / AIR mobile platform in 2012
8
Mobile Flash Player (inside browser)
Adobe has removed FP from Android
focus on AIR mobile runtime
Mobile AIR runtime (outside browser)
• Android
• iOS
• BlackBerry Playbook
• Connected TV
• BB10 (confirmed)
• WP8 Metro? (to be confirmed)
Browser
Mobile APP
2012 © Trivadis
What about Flex?
9
Flex framework has moved to open source
• Apache licence
• First release (Flex SDK 4.8) in july 2012
• Although it is still related to AIR, Flex Mobile is no longer under Adobe
development strategy, but instead by the Apache community
• Flex Apache community pretty active, with a lot of commits in Oct. 2012
• Mailing list : http://incubator.apache.org/flex/mailing-lists.html
2012 © Trivadis
Adobe long-term strategy
10
2- Focus on gaming / premium video with Flash / AIR
• For desktop (Windows, MacOS,…)
• For mobile with AIR (iOS, Android, BB10…)
1- Focus on HTML5
• For desktop (new Edge brand)
• For mobile (PhoneGap / Cordova)
Main last enhancements:
• Native Extensions (mobile)
• Workers (multi-threading)
• ASC2.0 new compiler
Under specifications:
• ASNext (AS4 language)
2012 © Trivadis
Adobe long-term strategy
11
New tools and frameworks
• Starling: 2D framework (Stage3D/GPU)
• Feathers UI: UI set based on Starling for creating
fast and smooth mobile UI (should be supported by
Adobe?)
• Monocle project : the next-generation profiler for
Flash content (FP + AIR Mobile)
Monocle project FeathersUI
2012 © Trivadis
1. Introduction
2. Flash / AIR mobile platform in 2012
3. Monocle: a real profiler
4. Monocle for mobile in action
12
2012 © Trivadis
Monocle… what is this?
13
Flash Player 11.4 & AIR 3.4 : telemetry features introduction
• Telemetry is a technology that allows data measurements to be made at a distance
• The word is derived from two Greek roots: tele = remote and metron = measure
The Telemetry feature works deep inside the internals of the Flash runtime and sends
data to Monocle, which parses it and displays it in a clear and concise way
2012 © Trivadis
Why Monocle?
14
Benefits
• No debugger : Monocle does not require any debugger version of the Flash player
Profiling in real context, even as a release build
• Profiling at full speed (different than inside a debugger player running slower)
Remote profiling
A powerful feature: running the content to be profiled on a different machine than the machine
running Monocle
A few scenarios possible:
1. A desktop machine is running the content (with Flash Player), with another computer
running Monocle. This can be useful to debug a remote project.
2. A mobile device is running the content (with Adobe AIR), with another computer
running Monocle. This is a typical workflow when developing for mobile devices.
You can direct Telemetry to any accessible machine by entering a hostname or IP address.
2012 © Trivadis
Enable advanced Telemetry on SWFs
15
Flash Builder 4.7 comes with a new option in the compiler settings
allowing you to enable Telemetry
2012 © Trivadis
1. Introduction
2. Flash / AIR mobile platform in 2012
3. Monocle: a real profiler
4. Monocle for mobile in action
16
2012 © Trivadis
Monocle for mobile in action
17
2012 © Trivadis
BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN
Thank you ! Trivadis AG
Laurent Jayr
www.trivadis.com
29.09.2012
18