-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TODO] profiler improvements #10119
[TODO] profiler improvements #10119
Conversation
d15fdc9
to
cba74d7
Compare
if pointer(x) == pointer(y): result = true | ||
elif x.isNil or y.isNil: result = false | ||
else: result = strcmp(x, y) == 0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this still a letfover, I don't see you use it anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's the fix for #10106 ; without it it fails:
nim c --profiler:on compiler/nim.nim
compiler/nim c -o:/tmp/z01 compiler/nim.nim
fails with error msg here #10106 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a fix, it's workaround and I don't like it.
* add line to stacktrace in profiler results
cba74d7
to
6b9fb6f
Compare
It works around the underlying problem. |
/cc @Araq @zah
add line to stacktrace in profiler results
fixes can't profile nim compiler #10106
remove duplicate
type StackTrace = object
definitionnote to reviewer: not sure where/when this was used, maybe I overlook some use case?
minor bugfix in "for i in 0..<min(100, entries)" (previously printed 101 entries unlike what comment suggested)
Note: the fix for #10106 works but leads to code duplication; alternatives would be:
{.pushAcrossModuleBoundary profiler: off.}
as proposed here: {.pushAcrossModuleBoundary profiler: off.} to push a compilation option all the way down #10120