OnSuccess Method (GTimer)
Method executed after the body of methods to which this aspect is applied, but only when the method successfully returns (i.e. when no exception flies out the method.). For convenience in Analyst, each duration is stored in two metrics. An overall metric is useful for charting hot spots grouping by method. Individual metrics per method are useful for graphing duration over time.
[DebuggerHidden()]
[PostSharp.Aspects.Internals.MethodExecutionAdviceOptimization(MethodExecutionAdviceOptimizations.IgnoreGetArguments |
MethodExecutionAdviceOptimizations.IgnoreGetException |
MethodExecutionAdviceOptimizations.IgnoreGetInstance |
MethodExecutionAdviceOptimizations.IgnoreGetMethod |
MethodExecutionAdviceOptimizations.IgnoreGetReturnValue |
MethodExecutionAdviceOptimizations.IgnoreSetArguments |
MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior |
MethodExecutionAdviceOptimizations.IgnoreSetInstance |
MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag |
MethodExecutionAdviceOptimizations.IgnoreSetReturnValue)]
public override void OnSuccess(
PostSharp.Aspects.MethodExecutionArgs
)
'Declaration
<DebuggerHiddenAttribute()>
<PostSharp.Aspects.Internals.MethodExecutionAdviceOptimizationAttribute(MethodExecutionAdviceOptimizations.IgnoreGetArguments Or _
MethodExecutionAdviceOptimizations.IgnoreGetException Or _
MethodExecutionAdviceOptimizations.IgnoreGetInstance Or _
MethodExecutionAdviceOptimizations.IgnoreGetMethod Or _
MethodExecutionAdviceOptimizations.IgnoreGetReturnValue Or _
MethodExecutionAdviceOptimizations.IgnoreSetArguments Or _
MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior Or _
MethodExecutionAdviceOptimizations.IgnoreSetInstance Or _
MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag Or _
MethodExecutionAdviceOptimizations.IgnoreSetReturnValue)>
Public Overrides NotOverridable Sub OnSuccess( _
ByVal As PostSharp.Aspects.MethodExecutionArgs _
)
Parameters
- eventArgs
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
GTimer Class
GTimer Members
Base Implementation in OnSuccess