"Fossies" - the Fresh Open Source Software Archive

Member "phpMyAdmin-5.1.0-english/templates/sql/profiling_chart.twig" (24 Feb 2021, 2815 Bytes) of package /linux/www/phpMyAdmin-5.1.0-english.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <fieldset>
    2   <legend>{% trans 'Profiling' %}</legend>
    3   <div class="floatleft">
    4     <h3>{% trans 'Detailed profile' %}</h3>
    5     <table class="pma-table" id="profiletable">
    6       <thead>
    7       <tr>
    8         <th>
    9           {% trans 'Order' %}
   10           <div class="sorticon"></div>
   11         </th>
   12         <th>
   13           {% trans 'State' %}
   14           <div class="sorticon"></div>
   15         </th>
   16         <th>
   17           {% trans 'Time' %}
   18           <div class="sorticon"></div>
   19         </th>
   20       </tr>
   21       </thead>
   22       <tbody>
   23         {% for state in profiling.profile %}
   24           <tr>
   25             <td>{{ loop.index }}</td>
   26             <td>{{ state.status }}</td>
   27             <td class="text-right">
   28               {{ state.duration }}s
   29               <span class="rawvalue hide">{{ state.duration_raw }}</span>
   30             </td>
   31           </tr>
   32         {% endfor %}
   33       </tbody>
   34     </table>
   35   </div>
   36 
   37   <div class="floatleft">
   38     <h3>{% trans 'Summary by state' %}{{ show_mysql_docu('general-thread-states') }}</h3>
   39     <table class="pma-table" id="profilesummarytable">
   40       <thead>
   41       <tr>
   42         <th>
   43           {% trans 'State' %}
   44           <div class="sorticon"></div>
   45         </th>
   46         <th>
   47           {% trans 'Total Time' %}
   48           <div class="sorticon"></div>
   49         </th>
   50         <th>
   51           {% trans '% Time' %}
   52           <div class="sorticon"></div>
   53         </th>
   54         <th>
   55           {% trans 'Calls' %}
   56           <div class="sorticon"></div>
   57         </th>
   58         <th>
   59           {% trans 'ΓΈ Time' %}
   60           <div class="sorticon"></div>
   61         </th>
   62       </tr>
   63       </thead>
   64       <tbody>
   65         {% for name, stats in profiling.states %}
   66           <tr>
   67             <td>{{ name }}</td>
   68             <td class="text-right">
   69               {{ format_number(stats.total_time, 3, 1) }}s
   70               <span class="rawvalue hide">{{ stats.total_time }}</span>
   71             </td>
   72             <td class="text-right">
   73               {{ format_number(100 * (stats.total_time / profiling.total_time), 0, 2) }}%
   74             </td>
   75             <td class="text-right">{{ stats.calls }}</td>
   76             <td class="text-right">
   77               {{ format_number(stats.total_time / stats.calls, 3, 1) }}s
   78               <span class="rawvalue hide">
   79                 {{ (stats.total_time / stats.calls)|number_format(8, '.', '') }}
   80               </span>
   81             </td>
   82           </tr>
   83         {% endfor %}
   84       </tbody>
   85     </table>
   86   </div>
   87   <div class='clearfloat'></div>
   88 
   89   <div id="profilingChartData" class="hide">
   90     {{- profiling.chart|json_encode() -}}
   91   </div>
   92   <div id="profilingchart" class="hide"></div>
   93 
   94   <script type="text/javascript">
   95     AJAX.registerOnload('sql.js', function () {
   96       Sql.makeProfilingChart();
   97       Sql.initProfilingTables();
   98     });
   99   </script>
  100 </fieldset>