-
Notifications
You must be signed in to change notification settings - Fork 175
Implement getting cobalt startup time for 3P platforms #8488
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
base: 26.eap
Are you sure you want to change the base?
Conversation
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
62f566d to
eb6f5b9
Compare
eb6f5b9 to
9f18ae9
Compare
9f18ae9 to
d916d62
Compare
| int64_t time_origin = performance_obj.GetTimeOriginInternal().ToInternalValue(); | ||
| LOG(INFO) << "OriginTime is "<< time_origin; | ||
| LOG(INFO) << "startup_time variable value is "<< startup_time; | ||
| double startup_time_ms = static_cast<double>(startup_time - time_origin) / 1000.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.
let's discuss in tomnorow's meeting @andrewsavage1
want to double check with you if this looks okay or you had something else in mind
| } // namespace | ||
|
|
||
| void SetStartupTime(int64_t startup_time) { | ||
| g_startup_time = startup_time; |
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.
Don't you need a mutex guarding access to this?
| BindRemotePerformance(script_state)->GetAppStartupTime(&startup_time); | ||
| ScriptPromise promise = resolver->Promise(); | ||
| #if BUILDFLAG(IS_STARBOARD) | ||
| int64_t time_origin = performance_obj.GetTimeOriginInternal().ToInternalValue(); |
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.
Instead of converting this to an int64_t, which is not an intuitive type, let's convert startup_time to a base::Time to make the math we're doing more clear.
No description provided.