Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Mono.Profiler/profiler-decoder-library/EventProcessor.cs')
-rw-r--r--Mono.Profiler/profiler-decoder-library/EventProcessor.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/Mono.Profiler/profiler-decoder-library/EventProcessor.cs b/Mono.Profiler/profiler-decoder-library/EventProcessor.cs
index 122fe1dd..f865c005 100644
--- a/Mono.Profiler/profiler-decoder-library/EventProcessor.cs
+++ b/Mono.Profiler/profiler-decoder-library/EventProcessor.cs
@@ -207,12 +207,11 @@ namespace Mono.Profiler {
public override void ClassStartUnload (LoadedClass c, ulong counter) {}
public override void ClassEndUnload (LoadedClass c, ulong counter) {}
- public override void Allocation (LoadedClass c, uint size) {
- LoadedMethod caller;
- if ((stack != null) && (stack.StackTop != null)) {
- caller = stack.StackTop.Method;
- } else {
- caller = null;
+ public override void Allocation (LoadedClass c, uint size, LoadedMethod caller, ulong counter) {
+ if (caller == null) {
+ if ((stack != null) && (stack.StackTop != null)) {
+ caller = stack.StackTop.Method;
+ }
}
c.InstanceCreated (size, caller);
}