1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140

content / browser / resources / indexed_db / transaction_table.html [blame]

<style>
  .transaction.started,
  .transaction.running,
  .transaction.committing {
    font-weight: bold;
  }

  .transaction-list {
    margin-inline-start: 10px;
    border-collapse: collapse;
  }

  .transaction-list th,
  .transaction-list td {
    padding: 2px 10px;
    min-width: 50px;
    max-width: 100px;
  }

  td.transaction-scope {
    min-width: 200px;
    max-width: 500px;
  }

  .transaction-list th {
    background-color: rgb(249, 249, 249);
    border: 1px solid rgb(156, 194, 239);
    font-weight: normal;
    text-align: start;
  }

  .transaction {
    background-color: rgb(235, 239, 249);
    border-bottom: 2px solid white;
  }

  .transaction.created {
    font-weight: italic;
  }

  .transaction.started .state {
    background-color: rgb(249, 249, 235);
  }

  .transaction.running .state {
    background-color: rgb(235, 249, 235);
  }

  .transaction.committing .state {
    background-color: rgb(235, 235, 249);
  }

  .transaction.blocked .state {
    background-color: rgb(249, 235, 235);
  }
  .state {
    text-align: end;
    cursor: pointer;
    white-space: nowrap;
  }
  .state:hover {
    position: relative
  }
  .state a {
    margin-left: 10px;
  }
  .timing-popover {
    visibility: hidden;
    position: absolute;
    top: 0px;
    left: 100%;
    border: 1px solid black;
    padding: 10px;
    font-weight: normal;
    background: white;
  }
  .state:hover .timing-popover {
    visibility: visible;
    text-align: start;
  }
  .state:hover .timing-popover ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
</style>
<div id="transactions">
  <span>Transactions:</span>
  <table class="transaction-list">
    <thead>
      <tr>
        <th title="Transaction ID (unique within Process)">
          ID
        </th>
        <th title="Type of transaction">
          Mode
        </th>
        <th title="Names of object stores used by the transaction">
          Scope
        </th>
        <th title="Number of requests that have been executed">
          Completed Requests
        </th>
        <th title="Number of requests that have not yet been executed">
          Pending Requests
        </th>
        <th title="Time since transaction creation">
          Age (ms)
        </th>
        <th title="Time since transaction started">
          Runtime (ms)
        </th>
        <th title="State in the transaction queue">
          State
        </th>
      </tr>
    </thead>
    <tbody></tbody>
  </table>

  <template id="transaction-row">
    <tr class="transaction">
      <td class="tid"></td>
      <td class="mode"></td>
      <td class="scope"></td>
      <td class="requests-complete"></td>
      <td class="requests-pending"></td>
      <td class="age"></td>
      <td class="runtime"></td>
      <td class="state">
        <span class="text"></span>
        <a title="View previous states">⏱</a>
        <div class="timing-popover">
          <strong>Previous States:</strong>
          <ul></ul>
        </div>
      </td>
    </tr>
  </template>
</div>