Dotfuscator User's Guide
PerformanceProbeAttribute

Summary

The PerformanceProbeAttribute is an instrumentation time attribute for methods. Dotfuscator will insert code to generate and send a PreEmptive Analytics PerformanceProbe Message into any method with this attribute. Dotfuscator will remove this custom attribute from the metadata after instrumentation.

PerformanceProbe Attribute
Copy Code
public class PerformanceProbeAttribute : Attribute

Constructor Members

Name Summary
PerformanceProbeAttribute() Initializes a new instance of the class.

Property Members

Name Summary

ExtendedKeyMethodArguements : string

A pattern indicating which parameter names and values should be automatically added to the messages extended key data at runtime.  See Automatically Sending Method Parameters as Extended Keys for details on supported patterns.

ExtendedKeySourceElement : SourceElements Indicates how to access the extended key dictionary at runtime, at the time that the attributed method is called (e.g. a field, property, method, or method parameter). To use this property, ExtendedKeySourceName must also be set. If ExtendedKeySourceElement is a field, method, or property, ExtendedKeySourceOwner must also be set unless the field, method, or property is defined on the same class as the attributed method.
ExtendedKeySourceName : string The name of the property, field, method, or method parameter that will contain the extended key dictionary at runtime, at the time that the attributed method is called. If this property is set, ExtendedKeySourceElement is required to be set as well. If this property is not set, Dotfuscator will not generate code to send extended key information.
ExtendedKeySourceOwner : Type If the ExtendedKeySourceElement is a field, method or property, ExtendedKeySourceOwner indicates the name of the type that defines the field, method or property. If not set, the named source element is searched for on the attributed method’s type.
InjectionPoint : InjectionPoints Where in the method to inject the generated code. Default to beginning.
Name : string The name of this instance of the PerformanceProbeAttribute. This can be used to distinguish between performance measurements taken at different points during execution.
See Also

References

Instrumentation

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com