mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
Remove version (tracegc) blocks (#20881)
This commit is contained in:
parent
24f80a0c42
commit
0bb48e277c
2 changed files with 0 additions and 27 deletions
|
@ -53,18 +53,6 @@ version (D_ProfileGC)
|
|||
string name = } ~ "`" ~ Type ~ "`;" ~ q{
|
||||
|
||||
// FIXME: use rt.tracegc.accumulator when it is accessable in the future.
|
||||
version (tracegc)
|
||||
} ~ "{\n" ~ q{
|
||||
import core.stdc.stdio : printf;
|
||||
|
||||
printf("%sTrace file = '%.*s' line = %d function = '%.*s' type = %.*s\n",
|
||||
} ~ "\"" ~ Hook ~ "\".ptr," ~ q{
|
||||
file.length, file.ptr,
|
||||
line,
|
||||
funcname.length, funcname.ptr,
|
||||
name.length, name.ptr
|
||||
);
|
||||
} ~ "}\n" ~ q{
|
||||
ulong currentlyAllocated = gcStatsPure().allocatedInCurrentThread;
|
||||
|
||||
scope(exit)
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
|
||||
module rt.tracegc;
|
||||
|
||||
// version = tracegc;
|
||||
|
||||
extern (C) void _d_callfinalizer(void* p);
|
||||
extern (C) void _d_callinterfacefinalizer(void *p);
|
||||
extern (C) void _d_delclass(Object* p);
|
||||
|
@ -69,19 +67,6 @@ enum accumulator = q{
|
|||
else
|
||||
string name = "";
|
||||
|
||||
version (tracegc)
|
||||
{
|
||||
import core.stdc.stdio : printf;
|
||||
|
||||
printf("%s file = '%.*s' line = %d function = '%.*s' type = %.*s\n",
|
||||
__FUNCTION__.ptr,
|
||||
file.length, file.ptr,
|
||||
line,
|
||||
funcname.length, funcname.ptr,
|
||||
name.length, name.ptr
|
||||
);
|
||||
}
|
||||
|
||||
ulong currentlyAllocated = GC.allocatedInCurrentThread;
|
||||
|
||||
scope(exit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue