Changeset 55296 in webkit


Ignore:
Timestamp:
Feb 26, 2010 11:50:53 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-02-26 Janne Koskinen <janne.p.koskinen@digia.com>

Reviewed by Simon Hausmann.

[Qt] Symbian specific getCPUTime implemetation
https://bugs.webkit.org/show_bug.cgi?id=34742

Default implementation doesn't work on Symbian devices.
This change adds a proper implementation by
asking thread execution time from the current thread.

  • runtime/TimeoutChecker.cpp: (JSC::getCPUTime):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r55262 r55296  
     12010-02-26  Janne Koskinen  <janne.p.koskinen@digia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Symbian specific getCPUTime implemetation
     6        https://bugs.webkit.org/show_bug.cgi?id=34742
     7
     8        Default implementation doesn't work on Symbian devices.
     9        This change adds a proper implementation by
     10        asking thread execution time from the current thread.
     11
     12        * runtime/TimeoutChecker.cpp:
     13        (JSC::getCPUTime):
     14
    1152010-02-25  Alexey Proskuryakov  <ap@apple.com>
    216
  • trunk/JavaScriptCore/runtime/TimeoutChecker.cpp

    r53926 r55296  
    8585   
    8686    return userTime.fileTimeAsLong / 10000 + kernelTime.fileTimeAsLong / 10000;
     87#elif OS(SYMBIAN)
     88    RThread current;
     89    TTimeIntervalMicroSeconds cpuTime;
     90
     91    TInt err = current.GetCpuTime(cpuTime);
     92    ASSERT_WITH_MESSAGE(err == KErrNone, "GetCpuTime failed with %d", err);
     93    return cpuTime.Int64() / 1000;
    8794#elif PLATFORM(BREWMP)
    8895    // This function returns a continuously and linearly increasing millisecond
Note: See TracChangeset for help on using the changeset viewer.