Skip to content

bugfix: druntime may fail to determine the timing of ticks#3

Merged
AntonMeep merged 1 commit intoAntonMeep:masterfrom
joakim-brannstrom:master
Jul 24, 2018
Merged

bugfix: druntime may fail to determine the timing of ticks#3
AntonMeep merged 1 commit intoAntonMeep:masterfrom
joakim-brannstrom:master

Conversation

@joakim-brannstrom
Copy link
Copy Markdown
Contributor

I can't explain why druntime fails but the second branch in the if-statement in druntime/src/rt/trace.d, (function trace_time line 306 in dmd-2.081.1) activated on my computer.

Besides this bug. Nice tool! It really helped me understand where my bottlenecks where.

@AntonMeep
Copy link
Copy Markdown
Owner

Looks like druntime fails to determine CPU frequency so it falls back to 1 megaticks/second. This means that profdump shouldn't show function times in seconds in such cases but rather show ticks.

Thanks for the PR, I'll open an issue about that unknown frequency thing.

@AntonMeep AntonMeep closed this Jul 24, 2018
@AntonMeep AntonMeep reopened this Jul 24, 2018
@AntonMeep AntonMeep merged commit 4e0e64d into AntonMeep:master Jul 24, 2018
@joakim-brannstrom
Copy link
Copy Markdown
Contributor Author

thank you :)

@AntonMeep
Copy link
Copy Markdown
Owner

I also tagged a new release v0.4.3 with this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants