-
-
Notifications
You must be signed in to change notification settings - Fork 575
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
Profiling support #174
Profiling support #174
Conversation
e59d368
to
21ec76e
Compare
This needs to be updated to reflect the name changes done in the Godot side, then it should be good to go :) |
I've realized this needs NativeScript 1.1 now, after I moved the |
@marcelofg55 nativescript 1.1 has been merged, can you check if this is still valid and if so update the PR? |
@BastiaanOlij I'll convert my project to nativescript 1.1 and then re-check this. Are the GDNative demos updated to nativescript 1.1? |
@BastiaanOlij I have a question regarding nativescript 1.1, hope it's okay if I ask it here. I'm converting my code to nativescript 1.1 and I used to have this code:
|
@marcelofg55 not sure, my gut feeling says:
Might work, but I could be very wrong. |
Your suggestion makes sense but its failing to compile:
|
4841daa
to
b33810b
Compare
This is ready for review/merge. |
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.
Looks good to me!
@marcelofg55 looks like you remove nativescript_terminate by accident. If you could fix that up I'll merge these in :) |
b33810b
to
bb099ae
Compare
@BastiaanOlij I've just fixed the nativescript_terminate thing on the PR and rebased it to the latest master. I guess the PR should be okay now. |
@marcelofg55 it's still showing that it wants to remove the nativescript_terminate method though? |
bb099ae
to
209dd56
Compare
@BastiaanOlij Just re-fixed that, seems fine now :) |
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.
Looking good now!
This can be added now that godotengine/godot#21229 was merged.
Note: To make functions send profiling data to godot use
GODOT_PROFILING_FUNCTION
(DEBUG_ENABLED
must be declared on the SConstruct) on each function, like this: