5/3/2019 9:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.

Slides:



Advertisements
Similar presentations
11/12/ :06 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Advertisements

1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
5/2/2018 1:53 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
5/3/2018 2:15 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Windows Calls Applications (windows.applicationmodel.calls)
5/6/2018 2:37 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Microsoft Ignite /10/2018 3:38 AM
5/12/2018 3:54 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
5/22/2018 3:04 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Windows Developer Day Fall Creators Update Chris Cortes
Tooling Breakout Session
6/12/2018 3:52 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Modern application lifecycle with DevOps
7/19/2018 9:40 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Connect /26/2018 1:00 AM
9/11/ :55 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Build /13/2018 2:24 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Automate all things! Microsoft Azure continuous deployment
Project Rome: Cross device interactions
Project Rome: Activity API & Pick Up Where I Left Off
Customizing your device experience with assigned access
Modernizing App Experiences
Developing for Key Windows Phone Consumer Scenarios
Microsoft Build /21/2018 8:34 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /22/2018 3:05 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Darren Neimke and Jonathan Ruckert
Microsoft Build /9/2018 8:05 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /12/2018 2:41 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Build vNext in VSO and TFS 2015
Bring existing desktop apps to UWP with the Desktop Bridge
Microsoft Build /24/2018 2:23 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Database Continuous Integration and Deployment with Visual Studio SQL Server Data Tools in < 10 minutes Eric Kang Program Manager.
Hosted Web Apps with Windows App Studio
11/27/2018 4:20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
11/27/2018 6:59 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Ignite /28/2018 8:58 AM
Microsoft Build /30/2018 2:15 AM Migrating Silverlight Windows Phone apps to the Universal Windows Platform Ricardo Villalobos Principal SDE Manager.
Microsoft Connect /1/ :31 AM
Skype for Business – App SDK
Digital display units This template is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY, AS TO THE INFORMATION.
A/B Testing for UWP Apps: Experiment for Success
12/5/2018 4:31 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
12/25/2018 5:11 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
File Picker for OneDrive and OneDrive for Business
Improving JavaScript Frameworks, Edge, & UWP Web Apps
SPC Developer 1/1/2019 Deep Dive on the Capabilities of SharePoint Online's New Public Website Josh Stickler Program Manager WCM Kevin Gjerstad Principal.
Microsoft Build /2/2019 4:12 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /2/2019 6:45 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Build /16/2019 1:17 PM Adding Interactions in the Visual Layer to Create Customized & Responsive Experiences Anthony Young & Lindsay Kubasik.
Microsoft Build /17/2019 8:09 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Microsoft Connect /17/2019 9:55 PM
Internal social media units
2/16/2019 1:48 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Bringing desktop apps to the UWP using Desktop App Converter
Microsoft Ignite /17/2019 6:00 PM
What is Visual Studio Code?
Microsoft Connect /25/2019 1:20 PM
What's New in Visual Studio & Blend for XAML Developers
4/9/ | Contracts © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
4/12/2019 5:27 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Windows Device Portal Hirsch Singhal Program
Using Expression Animations to Create Engaging & Custom UI
4/29/2019 9:20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
4/29/ :17 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
WCF and .NET Framework Microservices in Containers
User Segmentation and Targeted Push Notifications for UWP apps
5/30/2019 1:59 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
Bringing existing managed code into Metro style apps
03 | Async Programming & Networking Intro
WCL425 App Compat for Nerds Chris Jackson.
Presentation transcript:

5/3/2019 9:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

App Diagnostics #1 The new App Diagnostics APIs 5/3/2019 9:33 PM P4169 App Diagnostics #1 The new App Diagnostics APIs Andrew Whitechapel Program Manager © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

New diagnostic APIs What are they for? How are they different? Targeted app-profiling General-purpose tooling How are they different? Existing tools know about processes New APIs know additional UWP-specific information Can I use them now? Skeleton form in the Creators Edition Sneak-peek to the next release #MSBuild

Overview Introducing the new app diagnostics APIs What’s different between Creators Edition and the next release How the API hierarchy models the kernel and platform behavior Permissions and user settings Building a UWP Task Manager

The new app diagnostic APIs New APIs that provide information about running apps What apps are in memory Execution state, resource usage (memory, CPU, disk, energy) Background tasks Integrates and extends existing diagnostic APIs W.S.D.ProcessDiagnosticInfo, W.S.MemoryManager, W.AM.AppInfo W.M.D.PackageManager Enable an app to get information about any running app Permission gated by capability and settings

Creators Edition vs Next Release Get a list of running apps Minimal AppDiagnosticInfo AppUserModelId, PackageFamilyName, DisplayName, Description, Logo Next Release(s) Enhanced AppDiagnosticInfo Memory usage, Execution state, Energy quota state List of background tasks List of processes Closed loop: AppDiagnosticInfo  ProcessDiagnosticInfo Change notifications

Creators Edition

Creators Edition – API usage public ObservableCollection<RowInfo> rows = new ObservableCollection<RowInfo>(); private async void getData_Click(object sender, RoutedEventArgs e) { rows.Clear(); IList<AppDiagnosticInfo> apps = await AppDiagnosticInfo.RequestInfoAsync(); foreach (AppDiagnosticInfo app in apps) RowInfo row = new RowInfo() Logo = await GetLogoAsync(app), DisplayName = app.AppInfo.DisplayInfo.DisplayName, AppUserModelId = app.AppInfo.AppUserModelId }; rows.Add(row); } appListView.ItemsSource = rows;

Manifest capabilities <Package xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/ windows10/restrictedcapabilities" IgnorableNamespaces="uap mp rescap"> <!----> <Capabilities> <rescap:Capability Name="appDiagnostics" /> <rescap:Capability Name="packageQuery" /> </Capabilities> </Package>

Permissions and user settings

How the APIs model platform behavior

New and updated APIs

vNext – API usage DiagnosticPermission permission = await AppDiagnosticInfo.RequestPermissionAsync(); if (permission == DiagnosticPermission.Allowed) { IList<AppDiagnosticInfo> appDiagnostics = await AppDiagnosticInfo.RequestInfoAsync(); foreach(AppDiagnosticInfo appDiagnostic in appDiagnostics) IList<ResourceGroupInfo> groups = appDiagnostic.GetResourceGroups(); foreach (ResourceGroupInfo group in groups) MemoryReport memoryReport = group.GetMemoryReport(); Debug.WriteLine( "level={0}, limit={1}, private commit={2}, total commit={3}", memoryReport.CommitUsageLevel, memoryReport.CommitUsageLimit, memoryReport.PrivateCommitUsage, memoryReport.TotalCommitUsage); }

Building UWP Task Manager Add manifest capability Request permission to get info for apps Get a list of running processes either: a list of ProcessDiagnosticInfo or: a list of AppDiagnosticInfo For each process, get process-specific info For each packaged app, get app-specific info Poll for updates

Demo – UWP TaskManager Andrew Whitechapel 5/3/2019 9:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Conclusions New APIs to get diagnostic information for running apps Protected by capability, user consent, settings Process data and app data General-purpose diagnostic tools Targeted app profiling

Call to action Let attendees know what do to following this session. 5/3/2019 9:33 PM Call to action Let attendees know what do to following this session. Tell Attendees the URL where they can find your Github Code Use this slide to list resources, white papers, videos and links. Re-visit Build session recordings on Channel 9. Continue your education at Microsoft Virtual Academy online. #MSBuild © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5/3/2019 9:33 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.