Skip to content

Added @profile on several key methods in the Android lifecycle, refactored by extracting into methods a little #4685

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

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

PanayotCankov
Copy link
Contributor

No description provided.

@ghost ghost assigned PanayotCankov Aug 10, 2017
@ghost ghost added the in progress label Aug 10, 2017
@dtopuzov
Copy link
Contributor

run ci

Copy link
Contributor

@hshristov hshristov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I understand the need to profile I still don't like this syntax and the fact that I need to change how I write code in order to profile it. IMO this makes is harder to read.

const notifyActivityCreated = profile("notifyActivityCreated", function(activity: android.app.Activity, savedInstanceState: android.os.Bundle) {

}

@profile
private setContentView(activity: android.app.Activity): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we pass activity here?

@PanayotCankov
Copy link
Contributor Author

run ci

2 similar comments
@dtopuzov
Copy link
Contributor

run ci

@PanayotCankov
Copy link
Contributor Author

run ci

…tored by extracting into methods a little
@PanayotCankov PanayotCankov force-pushed the android-lifecycle-profile branch from 5a6f340 to f0faddb Compare August 24, 2017 09:52
@PanayotCankov PanayotCankov merged commit 3a447b6 into master Aug 24, 2017
@ghost ghost removed the in progress label Aug 24, 2017
@vakrilov vakrilov deleted the android-lifecycle-profile branch August 28, 2017 06:12
@lock
Copy link

lock bot commented Aug 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants