Instrumentation And Performance Microsoft ® Corporation.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Microsoft Dynamics GP 2013 R2 Dashboards © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Financial Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may.
 Ricky Buch Program Manager Microsoft Corporation  Kevin Michael Woley Program Manager Microsoft Corporation PC50.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
NEXT: Overview – Sharing skills & code.
demo Receive Inventory Export Parse and Normalize.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Ian Ellison-Taylor General Manager Microsoft Corporation PC27.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

IoCompleteRequest (Irp);... p = NULL; …f(p);
Ctrl-K, X Ctrl-K, S
Возможности Excel 2010, о которых следует знать
Title of Presentation 11/22/2018 3:34 PM
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
5/24/2019 6:44 PM 1/8/18 Bell #10 In a world governed by the gods, is there any room for human will? Do human choices make a difference? EXPLAIN © 2007.
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Title of Presentation 7/24/2019 8:53 PM
Presentation transcript:

Instrumentation And Performance Microsoft ® Corporation

Performance CountersEvents Example Usages Expose processing rates Measure performance General notifications Errors and warnings Trace actions for debugging Data TypesStrictly NumericalNo restriction Data Consumption Polled in real-time Written to a log file Delivered in real-time Written to a log file Buffered in memory Applications can make use of both Performance Counters and Events

var counters = new CounterCreationDataCollection (); counters.Add(new CounterCreationData(...)); PerformanceCounterCategory.Create(..., counters); PC instance = new PerformanceCounter(...); instance.RawValue = 128; var counters = new CounterCreationDataCollection (); counters.Add(new CounterCreationData(...)); PerformanceCounterCategory.Create(..., counters); PC instance = new PerformanceCounter(...); instance.RawValue = 128;

Event Audience Developer; IT ProfessionalSystem Administrator TechnologyETWEvent Log Event ControlManualAlways On Event Rate High (10^4 / sec)Medium (10^2 - 10^4 / sec) Features Declaratively defined in manifests Programmatic Consumption Discoverability Localizable Strings Flexible Data Model Same Features of ETW plus: Remote Collection Data Query Support Admin Focused Tools Centralized event logs Reduced logging rate Common API Set and Development Model

Providers are automatically enabled to the Event Log if they log to channels

typedefstruct _EVENT_DESCRIPTOR { USHORT Id; UCHAR Version; UCHAR Channel; UCHAR Level; UCHAR Opcode; USHORT Task; ULONGLONG Keyword; } EVENT_DESCRIPTOR, *PEVENT_DESCRIPTOR; typedefstruct _EVENT_DESCRIPTOR { USHORT Id; UCHAR Version; UCHAR Channel; UCHAR Level; UCHAR Opcode; USHORT Task; ULONGLONG Keyword; } EVENT_DESCRIPTOR, *PEVENT_DESCRIPTOR;

Design 1 1 Create Instrumentation Manifest (ECMangen) Create Instrumentation Manifest (ECMangen) XML Manifest XML Manifest 2 2 CTRPP / MC preprocessors CTRPP / MC preprocessors.rc.c.h 3 3 Instrument provider APIs Instrument provider APIs New provider code New provider code 4 4 Build New Provider New Provider 5 5

Status = EventRegisterMyProvider(); … EventWriteMyEvent(42, 3.14, “My String”); … EventUnregisterMyProvider(); Status = EventRegisterMyProvider(); … EventWriteMyEvent(42, 3.14, “My String”); … EventUnregisterMyProvider();

MyProvidersimplePrvdr = new MyProvider(); … simplePrvdr.EventWriteMyEvent( 42, 3.14, “My String”); … MyProvidersimplePrvdr = new MyProvider(); … simplePrvdr.EventWriteMyEvent( 42, 3.14, “My String”); …

Design your application’s events and counters with a goal in mind

Set WMI = GetObject("winmgmts:“...) Set products = WMI.ExecQuery _ ("Select * from Win32_WindowsProductActivation") For Each product in products product.ActivateOnline() Next Set WMI = GetObject("winmgmts:“...) Set products = WMI.ExecQuery _ ("Select * from Win32_WindowsProductActivation") For Each product in products product.ActivateOnline() Next

ManagementObjectSearcher s = new ManagementObjectSearcher(...,"SELECT * FROM Win32_Share"); foreach (var share in s.Get()) { Console.WriteLine(share. GetPropertyValue("Path0")); } ManagementObjectSearcher s = new ManagementObjectSearcher(...,"SELECT * FROM Win32_Share"); foreach (var share in s.Get()) { Console.WriteLine(share. GetPropertyValue("Path0")); }

[InstrumentationClass( InstrumentationType.Event)] public class CpuTemperatureTooHighEvent { public float Temperature {... } public static void Publish(float f) { Instrumentation.Fire( new CpuTemperatureTooHighEvent(f)); } [InstrumentationClass( InstrumentationType.Event)] public class CpuTemperatureTooHighEvent { public float Temperature {... } public static void Publish(float f) { Instrumentation.Fire( new CpuTemperatureTooHighEvent(f)); }

Trouble- shooting Pack Resolution Scripts Verification Scripts Localized Resources

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.