[Issue 19723] New: wrong time values in GC.profileStats
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 6 17:38:38 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19723
Issue ID: 19723
Summary: wrong time values in GC.profileStats
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: kroeplin.d at googlemail.com
This simple test program runs for a few seconds but claims to have spent more
than 93 weeks doing GC:
import core.memory;
import std.stdio;
void main()
{
writeln(GC.profileStats);
scope (exit) writeln(GC.profileStats);
string s;
foreach (i; 0 .. 1_000_000)
s ~= "garbage";
}
ProfileStats(0, 0 hnsecs, 0 hnsecs, 0 hnsecs, 0 hnsecs)
ProfileStats(3, 93 weeks, 6 days, 11 hours, 29 minutes, 42 secs, 914 ms, 306
μs, and 4 hnsecs, 93 weeks, 6 days, 11 hours, 29 minutes, 42 secs, 914 ms, 260
μs, and 8 hnsecs, 31 weeks, 2 days, 3 hours, 49 minutes, 54 secs, 337 ms, 385
μs, and 4 hnsecs, 31 weeks, 2 days, 3 hours, 49 minutes, 54 secs, 337 ms, 401
μs, and 1 hnsec)
--
More information about the Digitalmars-d-bugs
mailing list