Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / PerformanceData / PerfProviderCollection.cs / 1305376 / PerfProviderCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics.PerformanceData { using System; using System.Threading; using System.ComponentModel; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using Microsoft.Win32; using Microsoft.Win32.SafeHandles; internal sealed class PerfProvider { internal Guid m_providerGuid; internal Int32 m_counterSet; internal SafePerfProviderHandle m_hProvider; //// [System.Security.SecurityCritical] internal PerfProvider(Guid providerGuid) { m_providerGuid = providerGuid; uint Status = UnsafeNativeMethods.PerfStartProvider(ref m_providerGuid, null, out m_hProvider); // ERROR_INVALID_PARAMETER, ERROR_OUTOFMEMORY if (Status != (uint) UnsafeNativeMethods.ERROR_SUCCESS) { throw new Win32Exception((int) Status); } } } internal static class PerfProviderCollection { // Internal global PERFLIB V2 provider collection that contains a collection of PerfProvider objects. // Use mutex to serialize collection initialization/update. // private static Object s_hiddenInternalSyncObject; private static List// // // s_providerList = new List (); private static Dictionary
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GrammarBuilderWildcard.cs
- StateValidator.cs
- ProxyHwnd.cs
- KeyedCollection.cs
- XmlJsonWriter.cs
- FlowNode.cs
- Parsers.cs
- CompositeDataBoundControl.cs
- Vector3DCollectionConverter.cs
- Focus.cs
- FlowLayoutSettings.cs
- DragDeltaEventArgs.cs
- ClrPerspective.cs
- ClockController.cs
- DynamicEntity.cs
- IndentedWriter.cs
- MetadataException.cs
- SelectedPathEditor.cs
- RootAction.cs
- SharedDp.cs
- DrawingAttributes.cs
- DBAsyncResult.cs
- XmlTextWriter.cs
- Literal.cs
- CodeMemberField.cs
- TcpSocketManager.cs
- OdbcPermission.cs
- SqlServer2KCompatibilityAnnotation.cs
- ReliableRequestSessionChannel.cs
- XmlWriterTraceListener.cs
- TraceRecord.cs
- LocalValueEnumerator.cs
- WorkflowRuntimeServiceElementCollection.cs
- util.cs
- InheritanceContextChangedEventManager.cs
- UIHelper.cs
- PagedDataSource.cs
- QueryCacheManager.cs
- WebConfigurationManager.cs
- StylusPlugin.cs
- TextElementEnumerator.cs
- ZipIOLocalFileHeader.cs
- XmlNodeReader.cs
- GeometryGroup.cs
- PerfCounterSection.cs
- ClientConfigurationSystem.cs
- ForEach.cs
- ToolStripContentPanelDesigner.cs
- FloatAverageAggregationOperator.cs
- Type.cs
- GregorianCalendar.cs
- XmlEncoding.cs
- VolatileEnlistmentState.cs
- EventWaitHandle.cs
- DocumentViewerBase.cs
- CurrencyManager.cs
- DebugView.cs
- PartialList.cs
- XPathAncestorIterator.cs
- PersonalizationProvider.cs
- DbBuffer.cs
- filewebrequest.cs
- FilterFactory.cs
- IdnElement.cs
- Transform.cs
- HtmlButton.cs
- StyleTypedPropertyAttribute.cs
- Transform.cs
- AppSettingsReader.cs
- CutCopyPasteHelper.cs
- JournalEntry.cs
- SqlPersonalizationProvider.cs
- ZipIOFileItemStream.cs
- COM2AboutBoxPropertyDescriptor.cs
- InvalidOleVariantTypeException.cs
- OptimalBreakSession.cs
- SqlOuterApplyReducer.cs
- XPathAncestorIterator.cs
- TemplateKeyConverter.cs
- ConfigurationManagerInternalFactory.cs
- followingquery.cs
- ParameterBuilder.cs
- SearchForVirtualItemEventArgs.cs
- XmlQueryOutput.cs
- MessageBuilder.cs
- Visual3D.cs
- AutomationPropertyInfo.cs
- XmlTextEncoder.cs
- DataRowCollection.cs
- DataGridViewButtonCell.cs
- ApplicationDirectory.cs
- ExtendedPropertyCollection.cs
- Int64Storage.cs
- WmlFormAdapter.cs
- SoapMessage.cs
- RadioButtonRenderer.cs
- DurableInstanceContextProvider.cs
- ListViewGroup.cs
- MultiAsyncResult.cs
- BamlRecordHelper.cs