Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Shared / MS / Utility / PerfService.cs / 1 / PerfService.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Implements the Service class for perf diagnostics // // History // 05/25/06 [....] Created // //--------------------------------------------------------------------------- using System; using System.Text; using System.Windows; using Microsoft.Win32; using MS.Internal; using MS.Utility; using MS.Internal.PresentationCore; namespace MS.Utility { ////// PerfService loads the PerfDiagnosisHelp.dll and launchs the service. /// [FriendAccessAllowed] static internal class PerfService { #region internal Properties ////// Perfservice uses this property to uniquely identfy each element in the tree. /// this ID gets traced with ETW traces and gets mapped to the element in the tool /// value is valid only if the service is running /// internal static long GetPerfElementID(UIElement element) { if ((PerfElementIDProperty != null) && (element != null)) { return (long)element.GetValue(PerfElementIDProperty); } return 0; } ////// Perfservice uses this property to uniquely identfy each element in the tree. /// this ID gets traced with ETW traces and gets mapped to the element in the tool /// value is valid only if the service is running /// internal static void SetPerfElementID(UIElement element, long value) { if ((PerfElementIDProperty != null) && (element != null)) { element.SetValue(PerfElementIDProperty, value); } return ; } #endregion internal Properties internal static readonly DependencyProperty PerfElementIDProperty = DependencyProperty.RegisterAttached( "PerfElementID", typeof(long), typeof(PerfService), new PropertyMetadata((long)0)); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartConnection.cs
- Int32KeyFrameCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- DataMemberConverter.cs
- AuthenticatedStream.cs
- DeploymentSection.cs
- MDIControlStrip.cs
- CollectionViewProxy.cs
- WebZone.cs
- TemplatePartAttribute.cs
- QilFactory.cs
- XPathNodeHelper.cs
- QueryInterceptorAttribute.cs
- XsdDataContractImporter.cs
- DataAdapter.cs
- RawAppCommandInputReport.cs
- ArrayTypeMismatchException.cs
- ListViewUpdatedEventArgs.cs
- GeometryConverter.cs
- EditorZoneBase.cs
- ComboBox.cs
- updateconfighost.cs
- ConfigurationPropertyAttribute.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- QilReplaceVisitor.cs
- HashSet.cs
- HotCommands.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SignerInfo.cs
- ElapsedEventArgs.cs
- CqlBlock.cs
- ImageFormat.cs
- TemplatedMailWebEventProvider.cs
- SqlCachedBuffer.cs
- ImageInfo.cs
- Normalization.cs
- ManualResetEvent.cs
- UIElement.cs
- ListViewItem.cs
- GridViewRowCollection.cs
- DbReferenceCollection.cs
- OrderToken.cs
- MasterPageBuildProvider.cs
- DragCompletedEventArgs.cs
- WasEndpointConfigContainer.cs
- PlainXmlSerializer.cs
- Renderer.cs
- RequestResizeEvent.cs
- WebSysDescriptionAttribute.cs
- LocalIdKeyIdentifierClause.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- PolicyStatement.cs
- SqlDataReaderSmi.cs
- ColorTranslator.cs
- XmlSerializableReader.cs
- ConfigurationSectionCollection.cs
- ObfuscateAssemblyAttribute.cs
- ELinqQueryState.cs
- Listener.cs
- SizeIndependentAnimationStorage.cs
- Membership.cs
- MessageQueuePermission.cs
- WebPartExportVerb.cs
- LiteralControl.cs
- AssemblyInfo.cs
- Activator.cs
- Invariant.cs
- StringComparer.cs
- NTAccount.cs
- WarningException.cs
- IUnknownConstantAttribute.cs
- DataControlField.cs
- ProfileParameter.cs
- OwnerDrawPropertyBag.cs
- RowsCopiedEventArgs.cs
- XslAstAnalyzer.cs
- DSACryptoServiceProvider.cs
- TargetException.cs
- SupportingTokenListenerFactory.cs
- PenThread.cs
- SpotLight.cs
- ForwardPositionQuery.cs
- ObjectDisposedException.cs
- CheckBoxList.cs
- BitmapMetadataBlob.cs
- PreviewKeyDownEventArgs.cs
- StringResourceManager.cs
- MsmqInputMessage.cs
- StylusPointProperties.cs
- DataGridRowHeaderAutomationPeer.cs
- InfoCardSchemas.cs
- CheckPair.cs
- FragmentQueryKB.cs
- AttributeEmitter.cs
- Subset.cs
- DataServiceResponse.cs
- ServiceOperationWrapper.cs
- GPRECTF.cs
- DecodeHelper.cs