template.blade.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!-- ANBU - LARAVEL PROFILER -->
  2. <style type="text/css">{{ file_get_contents(path('sys').'profiling/profiler.css') }}</style>
  3. <div class="anbu">
  4. <div class="anbu-window">
  5. <div class="anbu-content-area">
  6. <div class="anbu-tab-pane anbu-table anbu-log">
  7. @if (count($logs) > 0)
  8. <table>
  9. <tr>
  10. <th>Type</th>
  11. <th>Message</th>
  12. </tr>
  13. @foreach ($logs as $log)
  14. <tr>
  15. <td class="anbu-table-first">
  16. {{ $log[0] }}
  17. </td>
  18. <td>
  19. {{ $log[1] }}
  20. </td>
  21. @endforeach
  22. </tr>
  23. </table>
  24. @else
  25. <span class="anbu-empty">There are no log entries.</span>
  26. @endif
  27. </div>
  28. <div class="anbu-tab-pane anbu-table anbu-sql">
  29. @if (count($queries) > 0)
  30. <table>
  31. <tr>
  32. <th>Time</th>
  33. <th>Query</th>
  34. </tr>
  35. @foreach ($queries as $query)
  36. <tr>
  37. <td class="anbu-table-first">
  38. {{ number_format($query[1], 2) }}ms
  39. </td>
  40. <td>
  41. <pre>{{ $query[0] }}</pre>
  42. </td>
  43. </tr>
  44. @endforeach
  45. </table>
  46. @else
  47. <span class="anbu-empty">There have been no SQL queries executed.</span>
  48. @endif
  49. </div>
  50. <div class="anbu-tab-pane anbu-table anbu-checkpoints">
  51. @if (count($timers) > 0)
  52. <table>
  53. <tr>
  54. <th>Name</th>
  55. <th>Running Time (ms)</th>
  56. <th>Difference</th>
  57. </tr>
  58. @foreach ($timers as $name => $timer)
  59. <tr>
  60. <td class="anbu-table-first">
  61. {{ $name }}
  62. </td>
  63. <td><pre>{{ $timer['running_time'] }}ms (time from start to render)</pre></td>
  64. <td>&nbsp;</td>
  65. </tr>
  66. @if (isset($timer['ticks']))
  67. @foreach( $timer['ticks'] as $tick)
  68. <tr>
  69. <td>
  70. <pre>Tick</pre>
  71. </td>
  72. <td>
  73. <pre>{{ $tick['time'] }}ms</pre>
  74. </td>
  75. <td>
  76. <pre>+ {{ $tick['diff'] }}ms</pre>
  77. </td>
  78. </tr>
  79. @endforeach
  80. @else
  81. <tr>
  82. <td><pre>Running Time</pre></td>
  83. <td><pre>{{ $timer['time'] }}ms</pre></td>
  84. <td>&nbsp;</td>
  85. </tr>
  86. @endif
  87. @endforeach
  88. </table>
  89. @else
  90. <span class="anbu-empty">There have been no checkpoints set.</span>
  91. @endif
  92. </div>
  93. </div>
  94. </div>
  95. <ul id="anbu-open-tabs" class="anbu-tabs">
  96. <li><a data-anbu-tab="anbu-log" class="anbu-tab" href="#">Log <span class="anbu-count">{{ count($logs) }}</span></a></li>
  97. <li>
  98. <a data-anbu-tab="anbu-sql" class="anbu-tab" href="#">SQL
  99. <span class="anbu-count">{{ count($queries) }}</span>
  100. @if (count($queries))
  101. <span class="anbu-count">{{ number_format(array_sum(array_pluck($queries, '1')), 2) }}ms</span>
  102. @endif
  103. </a>
  104. </li>
  105. <li><a class="anbu-tab" data-anbu-tab="anbu-checkpoints">Time <span class="anbu-count">{{ $time }}ms</span></a></li>
  106. <li><a class="anbu-tab">Memory <span class="anbu-count">{{ $memory }} ({{ $memory_peak }})</span></a></li>
  107. <li class="anbu-tab-right"><a id="anbu-hide" href="#">&#8614;</a></li>
  108. <li class="anbu-tab-right"><a id="anbu-close" href="#">&times;</a></li>
  109. <li class="anbu-tab-right"><a id="anbu-zoom" href="#">&#8645;</a></li>
  110. </ul>
  111. <ul id="anbu-closed-tabs" class="anbu-tabs">
  112. <li><a id="anbu-show" href="#">&#8612;</a></li>
  113. </ul>
  114. </div>
  115. <script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
  116. <script>{{ file_get_contents(path('sys').'profiling/profiler.js') }}</script>
  117. <!-- /ANBU - LARAVEL PROFILER -->