aboutsummaryrefslogtreecommitdiff
path: root/virtualallochist.d
blob: 4c7fc2ad448d5ff2a21a78bd233100c978f4de4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
syscall::NtAllocateVirtualMemory:entry
/execname == "bench2.exe"/
{
    self->ts = timestamp;
}

syscall::NtAllocateVirtualMemory:return
/execname == "bench2.exe"/
{
    @alloc[execname] = quantize((timestamp - self->ts) / 1000);
}
*/

pid$1::VirtualAlloc:entry
{
    self->ts[probefunc] = timestamp;
}

pid$1::VirtualAlloc:return
{
    @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
}

pid$1::GetProcessTimes:entry
{
    self->ts[probefunc] = timestamp;
}

pid$1::GetProcessTimes:return
{
    @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
}

pid$1::"DynArray<std::unique_ptr<int,std::default_delete<int> > >::Append":entry
{
    self->ts[probefunc] = timestamp;
}

pid$1::"DynArray<std::unique_ptr<int,std::default_delete<int> > >::Append":return
{
    @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
}

pid$1::"DynArray<int>::Append":entry
{
    self->ts[probefunc] = timestamp;
}

pid$1::"DynArray<int>::Append":return
{
    @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
}