let _g = hprof::enter("Reading");
{
let _g = hprof::enter("Mapping");
let mapping = buffer.map();
drop(_g);
let _g = hprof::enter("Reading");
for val in mapping.values.iter() {
process(val);
}
}
Panics with:
thread '<main>' panicked at 'arithmetic operation overflowed', C:\Users\pierre\.cargo\registry\src\github.com-1285ae84e5963aae\hprof-0.1.2\src\lib.rs:262
Renaming the inner Reading to Reading2 fixed the issue.
The following code:
Panics with:
Renaming the inner
Reading
toReading2
fixed the issue.