Results 1 to 2 of 2

Thread: Profile Javascript

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Profile Javascript

    Hi,

    I have an application which uses a QWebView to render a QWebPage, but does not use QtQuick. This webpage is mostly javascript and I need to profile it. What are the recommended tools for doing this? I have tried to use the QML profiler (with Qt 5.3.1), but since there is no QML, it does not comes up with no stats. To get this to work, I had to add some QML code just to have it open: "QQuickView *qmlView = new QQuickView" but that code is otherwise unused.

    In my javascript file I have added console.profile/profileEnd to the required function. Is there a way to redirect this console or connect it to some profiler? The application uses Qt 5.2 but can be upgraded if needed.

    Thanks,
    Marc

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Profile Javascript

    You should be able to use any Javascript profiler available. Qt does not have any support for profiling Javascript code. It only has a regular WebKit's Web inspector.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 9
    Last Post: 29th November 2010, 12:12
  2. Profile Attributes
    By joy in forum Newbie
    Replies: 1
    Last Post: 8th September 2006, 16:11
  3. Installling Qt 3.3.6 on Mac OS X - Problem with .profile
    By Shambhavi in forum Installation and Deployment
    Replies: 5
    Last Post: 8th April 2006, 10:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.