You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/07/10 01:01:51 UTC

[jira] [Commented] (CB-4133) Detect Plugins that Incorrectly run on main thread

    [ https://issues.apache.org/jira/browse/CB-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703950#comment-13703950 ] 

Andrew Grieve commented on CB-4133:
-----------------------------------

To be clear - the idea here is to time how long the plugin.execute() line within PluginManager takes to run. (and likewise for iOS).

The hard part might be to make our own plugins not trigger the warning :)
                
> Detect Plugins that Incorrectly run on main thread
> --------------------------------------------------
>
>                 Key: CB-4133
>                 URL: https://issues.apache.org/jira/browse/CB-4133
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, iOS
>            Reporter: Andrew Grieve
>            Assignee: David Kemp
>
> The idea here is to log a message if any exec() calls spend longer than a certain amount of time (50ms?) on the UI/WebCore thread. In this case, they should be using background threads.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira