⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 274486 in webkit


Ignore:
Timestamp:
Mar 16, 2021, 9:57:35 AM (6 years ago)
Author:
pvollan@apple.com
Message:

Add signpost for injected bundle creation
​https://bugs.webkit.org/show_bug.cgi?id=223068

Reviewed by Alex Christensen.

Source/WebKit:

Emit signposts for creation of injected bundle.

  • WebProcess/InjectedBundle/InjectedBundle.cpp:

(WebKit::InjectedBundle::create):

Source/WTF:

Add trace point codes for start and end of injected bundle creation.

  • wtf/SystemTracing.h:

Tools:

Add injected bundle signposts to .plist file.

  • Tracing/SystemTracePoints.plist:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r274479 r274486  
     12021-03-16  Per Arne  <pvollan@apple.com>
     2
     3        Add signpost for injected bundle creation
     4        https://bugs.webkit.org/show_bug.cgi?id=223068
     5
     6        Reviewed by Alex Christensen.
     7
     8        Add trace point codes for start and end of injected bundle creation.
     9
     10        * wtf/SystemTracing.h:
     11
    1122021-03-16  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/Source/WTF/wtf/SystemTracing.h

    r269709 r274486  
    117117    FlushRemoteImageBufferStart,
    118118    FlushRemoteImageBufferEnd,
     119    CreateInjectedBundleStart,
     120    CreateInjectedBundleEnd,
    119121
    120122    UIProcessRange = 14000,
  • trunk/Source/WebKit/ChangeLog

    r274479 r274486  
     12021-03-16  Per Arne  <pvollan@apple.com>
     2
     3        Add signpost for injected bundle creation
     4        https://bugs.webkit.org/show_bug.cgi?id=223068
     5
     6        Reviewed by Alex Christensen.
     7
     8        Emit signposts for creation of injected bundle.
     9
     10        * WebProcess/InjectedBundle/InjectedBundle.cpp:
     11        (WebKit::InjectedBundle::create):
     12
    1132021-03-16  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp

    r271153 r274486  
    8282#include <WebCore/UserStyleSheet.h>
    8383#include <wtf/ProcessPrivilege.h>
     84#include <wtf/SystemTracing.h>
    8485
    8586#if ENABLE(NOTIFICATIONS)
    … …  
    9394RefPtr<InjectedBundle> InjectedBundle::create(WebProcessCreationParameters& parameters, API::Object* initializationUserData)
    9495{
     96    TraceScope scope(TracePointCode::CreateInjectedBundleStart, TracePointCode::CreateInjectedBundleEnd);
     97   
    9598    auto bundle = adoptRef(*new InjectedBundle(parameters));
    9699
  • trunk/Tools/ChangeLog

    r274483 r274486  
     12021-03-16  Per Arne  <pvollan@apple.com>
     2
     3        Add signpost for injected bundle creation
     4        https://bugs.webkit.org/show_bug.cgi?id=223068
     5
     6        Reviewed by Alex Christensen.
     7
     8        Add injected bundle signposts to .plist file.
     9
     10        * Tracing/SystemTracePoints.plist:
     11
    1122021-03-16  Jonathan Bedard  <jbedard@apple.com>
    213
  • trunk/Tools/Tracing/SystemTracePoints.plist

    r269709 r274486  
    472472             <dict>
    473473                 <key>Name</key>
     474                 <string>Create injected bundle</string>
     475                 <key>Type</key>
     476                 <string>Interval</string>
     477                 <key>Component</key>
     478                 <string>47</string>
     479                 <key>CodeBegin</key>
     480                 <string>12017</string>
     481                 <key>CodeEnd</key>
     482                 <string>12018</string>
     483             </dict>
     484             <dict>
     485                 <key>Name</key>
    474486                 <string>Commit RemoteLayerTree transaction</string>
    475487                 <key>Type</key>
Note: See TracChangeset for help on using the changeset viewer.