The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

26
The three Awesome tools by Xamarin - Udara Alwis - Workbooks / Inspector / Profiler

Transcript of The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Page 1: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

The three Awesome tools by Xamarin

- Udara Alwis -

Workbooks / Inspector / Profiler

Page 2: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

I am Udara Alwis• Xamarin Developer / Enthusiast• Mad Love for Mobile Development / UX• Microsoft Dot Net FTW!

• 23 Years of Awesomess… • Nature, Adventures, Running, Skateboarding, Cycling, Parkour• Occasional YouTube-er!

linkedin.com/in/UdaraAlwis

Page 3: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Le awesome tools by Xamarin

Xamarin Workbooks Xamarin ProfilerXamarin Inspector

Page 4: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Xamarin Workbooks

Page 5: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Why? Xamarin Workbooks?• Learning Xamarin or even dot net? • Teaching or demonstrating some code demo? • Experimenting code?

You need to deal with,• IDE – Visual Studio• Create documentation• Compilate and Run?• Switch between here and there?

Page 6: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Behold Xamarin Workbooks!• blend of documentation and code and live previewing

Perfect for • Experimentation,• Learning and Exploring• Creating guides and Teaching aids

Page 7: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Features

• Code Editing

• Rich Text Editing

• Add packages and libraries

• Compiler Diagnostics / Console Output

• Preview Results (Console/Android or iOS emulators)

• Save and Share

Page 8: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Code Editing

• code completion and • suggestions (intellisense)

• syntax coloring, • Inline live-diagnostics,• multi-line statement support.

Page 9: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Rich Text Editing• Full text customizations• Text styling• Complete documentation capabilities

Page 10: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Add Packages and Libraries• Import Libraries on the go• Nuget packages• Search and add

Page 11: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Compile and Runtime Diagnostics• Compiler errors• Runtime diagnostics• Reusable variables throughout the workbook

Page 12: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Live Preview/Rendering• Console• Android• iOS

• Mac• WPF

Page 13: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

DEMO – Xamarin Workbooks

Page 14: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Xamarin Profiler

Page 15: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Why? Xamarin Profiler?• As developers, make sure smooth User Experience

• make sure app is fully optimized• memory usage / resource usage• tackle mysterious crashes• flow of resource usage• where improvements are needed• native profilers can not help your Xamarin dot net code

Page 16: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Behold Xamarin Profiler!A tool that seamlessly integrates with your Xamarin application, collects, displays information to analyze your application.

• find memory leaks• resolve performance bottlenecks• add polish to your apps before getting them out the door.

• Based on : Mono Log profiler (command line profiler)

Page 17: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Xamarin Profiler Key Features / Instruments• Allocations - for tracking memory• Time Profiler - for tracking performance• Cycles - for tracking memory cycles

Page 18: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Additional features• Call Tree - Browse functions in the order they are called

• Sampling – Which function is taking the most time.

• Memory Snapshots - How memory isused at different points in time.

Page 19: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

DEMO – Xamarin Profiler

Page 20: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Xamarin Inspector

Page 21: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Why? Xamarin Inspector?• As a mobile developer• A beautiful pixel perfect design

• Optimizing your UI• Recompile and run your application every time

• Even for slightest changes• Big hassle for large scale apps• Navigate to the same screen redundantly

Page 22: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Behold Xamarin Inspector!• Debug and explore running applications• Modify the UI without re-compiling the code

• Awesome 3D exploded view ofthe view layers

Page 23: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Xamarin Inspector Key Features • REPL - Interact with thecode in real time

• Visual Inspector - Visually view andedit the UI hierarchy interactively

• Supports Xamarin.Forms

Page 24: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

DEMO – Xamarin Inspector

Page 25: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

…well that’s it!Now go build something cool with these awesome tools by Xamarin!

Good luck and enjoy!

Page 26: The three awesome tools by Xamarin : Workbooks|Inspector|Profiler

Thank You!

For Weekly Xamarin Articles check out my blog, https://theconfuzedsourcecode.wordpress.com

-Udara AlwisCODENAME: [ÇøŋfuzëÐ SøurcëÇødë]