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
- NameScopePropertyAttribute.cs
- EntitySetRetriever.cs
- TabControlAutomationPeer.cs
- SystemPens.cs
- ArcSegment.cs
- DefinitionProperties.cs
- XslCompiledTransform.cs
- LineBreak.cs
- CodeMethodInvokeExpression.cs
- Route.cs
- SystemIPv6InterfaceProperties.cs
- GeneralTransform.cs
- HttpClientCertificate.cs
- DataObjectPastingEventArgs.cs
- BookmarkTable.cs
- UnmanagedMarshal.cs
- Identity.cs
- BitmapFrameEncode.cs
- RegistrySecurity.cs
- ScrollPattern.cs
- RowType.cs
- SamlAdvice.cs
- DataListCommandEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- Type.cs
- Models.cs
- ParserHooks.cs
- NextPreviousPagerField.cs
- MetadataCollection.cs
- InstanceView.cs
- DebugView.cs
- WorkerRequest.cs
- DatatypeImplementation.cs
- TdsParserSafeHandles.cs
- _NegoStream.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DoWorkEventArgs.cs
- PeerContact.cs
- TreeNodeBinding.cs
- X509ChainElement.cs
- ContainerFilterService.cs
- UIElementParaClient.cs
- ChannelHandler.cs
- TaiwanLunisolarCalendar.cs
- ClusterSafeNativeMethods.cs
- SqlIdentifier.cs
- ContentPlaceHolderDesigner.cs
- PagesChangedEventArgs.cs
- xmlNames.cs
- SmiEventSink_Default.cs
- AlternateView.cs
- HtmlElementEventArgs.cs
- ServiceModelStringsVersion1.cs
- Parameter.cs
- TextStore.cs
- UserControl.cs
- Int32EqualityComparer.cs
- InheritanceContextChangedEventManager.cs
- MeasureItemEvent.cs
- EnumerationRangeValidationUtil.cs
- InstanceData.cs
- DiscoveryReference.cs
- XmlSortKeyAccumulator.cs
- ToolStripSeparatorRenderEventArgs.cs
- ObjectItemConventionAssemblyLoader.cs
- DataGridToolTip.cs
- StyleXamlTreeBuilder.cs
- GatewayDefinition.cs
- PointCollection.cs
- GridView.cs
- TextBlockAutomationPeer.cs
- TimestampInformation.cs
- DBCSCodePageEncoding.cs
- ExpressionParser.cs
- ADRoleFactory.cs
- recordstate.cs
- PartialList.cs
- OdbcConnection.cs
- TableDetailsCollection.cs
- TreeNodeStyle.cs
- KeyFrames.cs
- HtmlWindowCollection.cs
- LogicalExpr.cs
- TemplateBindingExtension.cs
- DelegatingConfigHost.cs
- SequentialUshortCollection.cs
- DataGridViewColumnEventArgs.cs
- IDataContractSurrogate.cs
- Comparer.cs
- DetailsViewDeletedEventArgs.cs
- AsyncOperationManager.cs
- BuildDependencySet.cs
- DataGridItemCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- OptimizedTemplateContent.cs
- DesignerLoader.cs
- CharUnicodeInfo.cs
- _NTAuthentication.cs
- RepeaterItemEventArgs.cs
- UnhandledExceptionEventArgs.cs