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
- MultitargetingHelpers.cs
- Preprocessor.cs
- QueryAccessibilityHelpEvent.cs
- XmlTextReaderImplHelpers.cs
- Content.cs
- ConfigurationPermission.cs
- NeedSkipTokenVisitor.cs
- ObjectNavigationPropertyMapping.cs
- WindowsFont.cs
- SubqueryTrackingVisitor.cs
- GridViewCancelEditEventArgs.cs
- DefaultCommandExtensionCallback.cs
- SourceFilter.cs
- LocalBuilder.cs
- PipelineComponent.cs
- FormClosedEvent.cs
- SqlDataReaderSmi.cs
- StorageConditionPropertyMapping.cs
- DependencyPropertyHelper.cs
- TextSearch.cs
- X509Utils.cs
- ToolStripLabel.cs
- Zone.cs
- ResourceExpression.cs
- AppliesToBehaviorDecisionTable.cs
- Literal.cs
- TableHeaderCell.cs
- WindowsSysHeader.cs
- PresentationAppDomainManager.cs
- XmlEncoding.cs
- DriveInfo.cs
- WebPartZone.cs
- ServerIdentity.cs
- DataObjectSettingDataEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- TwoPhaseCommit.cs
- ProviderCommandInfoUtils.cs
- SortableBindingList.cs
- StorageAssociationTypeMapping.cs
- ModulesEntry.cs
- RoleService.cs
- SoapSchemaMember.cs
- Parser.cs
- RichTextBoxContextMenu.cs
- DummyDataSource.cs
- ReliableChannelListener.cs
- HScrollProperties.cs
- SurrogateSelector.cs
- CryptoProvider.cs
- WmpBitmapDecoder.cs
- DataPagerFieldCollection.cs
- GuidelineSet.cs
- ACL.cs
- WebServiceTypeData.cs
- FixedSOMTextRun.cs
- WebPartEditVerb.cs
- SecurityTokenTypes.cs
- IdentifierCollection.cs
- NativeObjectSecurity.cs
- XMLSyntaxException.cs
- LongCountAggregationOperator.cs
- StylusDevice.cs
- RotateTransform3D.cs
- ResetableIterator.cs
- _LoggingObject.cs
- CompositeDataBoundControl.cs
- _CookieModule.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SingleTagSectionHandler.cs
- LocationChangedEventArgs.cs
- EarlyBoundInfo.cs
- TextChangedEventArgs.cs
- SemaphoreSlim.cs
- IgnoreDeviceFilterElementCollection.cs
- ScrollBar.cs
- BulletDecorator.cs
- View.cs
- DataGridViewEditingControlShowingEventArgs.cs
- WindowsFont.cs
- SiteMapProvider.cs
- FixedSOMTextRun.cs
- TranslateTransform.cs
- SqlParameterCollection.cs
- WebBrowserHelper.cs
- Panel.cs
- DiscoveryService.cs
- InstancePersistenceEvent.cs
- FolderBrowserDialog.cs
- TableAutomationPeer.cs
- WorkflowItemPresenter.cs
- SpnEndpointIdentity.cs
- FontStretch.cs
- LicenseException.cs
- DataGridPagerStyle.cs
- TemplateEditingFrame.cs
- MonitoringDescriptionAttribute.cs
- SrgsToken.cs
- ExpressionCopier.cs
- RuleSettingsCollection.cs
- WebPartDisplayModeEventArgs.cs