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
- OutKeywords.cs
- TextEditorTyping.cs
- NameSpaceExtractor.cs
- CancellationToken.cs
- List.cs
- TemplateEditingFrame.cs
- StringValidatorAttribute.cs
- mda.cs
- WebPartZone.cs
- HttpServerVarsCollection.cs
- CmsInterop.cs
- GrammarBuilderRuleRef.cs
- XpsS0ValidatingLoader.cs
- ExtenderControl.cs
- Exceptions.cs
- XmlSchemaSet.cs
- ReflectionUtil.cs
- QueryStringParameter.cs
- CorruptingExceptionCommon.cs
- SecondaryIndex.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DPAPIProtectedConfigurationProvider.cs
- CodeCompileUnit.cs
- Button.cs
- NetworkInformationPermission.cs
- ConfigurationException.cs
- SqlMultiplexer.cs
- FilteredDataSetHelper.cs
- VectorCollectionValueSerializer.cs
- DiscoveryClient.cs
- ReadOnlyDictionary.cs
- XmlSchemaAnyAttribute.cs
- SafeLibraryHandle.cs
- PrintDialogException.cs
- Mapping.cs
- DocumentSequenceHighlightLayer.cs
- PolyQuadraticBezierSegment.cs
- SqlTrackingService.cs
- ListViewDeleteEventArgs.cs
- QilName.cs
- PlanCompiler.cs
- BoundColumn.cs
- FillBehavior.cs
- SqlCrossApplyToCrossJoin.cs
- XmlEnumAttribute.cs
- Label.cs
- DocComment.cs
- IChannel.cs
- SqlDataSourceStatusEventArgs.cs
- GenericWebPart.cs
- XmlSchemaResource.cs
- RowParagraph.cs
- HtmlEncodedRawTextWriter.cs
- DecimalAnimationUsingKeyFrames.cs
- UserMapPath.cs
- AnnotationStore.cs
- ToolStripDropTargetManager.cs
- NullableFloatAverageAggregationOperator.cs
- Parameter.cs
- ToolStripItemClickedEventArgs.cs
- AssemblyCache.cs
- RequestCachePolicy.cs
- EventWaitHandleSecurity.cs
- RecognitionResult.cs
- EventProviderClassic.cs
- ISAPIWorkerRequest.cs
- COM2TypeInfoProcessor.cs
- TableChangeProcessor.cs
- TypeSystem.cs
- InstanceHandleReference.cs
- SoapFormatter.cs
- ApplicationManager.cs
- IconBitmapDecoder.cs
- DiscriminatorMap.cs
- RadialGradientBrush.cs
- ByteFacetDescriptionElement.cs
- WinInetCache.cs
- SymbolMethod.cs
- FileChangesMonitor.cs
- COSERVERINFO.cs
- BuildManager.cs
- DBParameter.cs
- X500Name.cs
- AsnEncodedData.cs
- SinglePhaseEnlistment.cs
- BaseCollection.cs
- TextFormatterImp.cs
- MDIControlStrip.cs
- MatrixCamera.cs
- PropertyEmitterBase.cs
- CodeNamespaceCollection.cs
- LinqDataSourceHelper.cs
- ContentAlignmentEditor.cs
- SmtpFailedRecipientException.cs
- EventLogTraceListener.cs
- LinkTarget.cs
- XmlSerializerVersionAttribute.cs
- XamlSerializerUtil.cs
- SmiRecordBuffer.cs
- FtpWebRequest.cs