zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

.template.debug.html (2211B)


      1 <html>
      2 
      3 <head>
      4   <title>Credo Debug Log</title>
      5 
      6   <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
      7     crossorigin="anonymous"></script>
      8 
      9   <style>
     10     * {
     11       box-sizing: border-box;
     12       font-family: Arial, sans-serif;
     13     }
     14     code {
     15       font-family: 'Courier New', Courier, monospace;
     16       color: #c55953;
     17     }
     18   </style>
     19 </head>
     20 
     21 <body>
     22 
     23   <h1>Experimental Credo Debug Log</h1>
     24 
     25   <p>
     26     Analysis in
     27     <code>
     28       <%= File.cwd! %>
     29     </code> took
     30     <strong><%= @time_total %> ms</strong> (<%= @time_load %> ms to load, <%= @time_run %> ms running checks)
     31   </p>
     32 
     33   <h2>Timings</h2>
     34   <p>
     35     Please note that these are cumulative timings across all cores, therefore an individual file or check can account for more time than the overall time spent.
     36   </p>
     37 
     38   <table border="1" cellpadding="4">
     39     <tr>
     40       <td></td>
     41       <th align=left>Check</th>
     42       <th align=left>File</th>
     43       <th align=left>Time (ms)</th>
     44     </tr>
     45     <tr>
     46       <th align=left valign=top rowspan="<%= Enum.min([5, Enum.count(@file_timings)]) %>">Slowest Files</th>
     47       <%= for {filename, time} <- Enum.take(@file_timings, 5) do %>
     48       <td></td>
     49         <td><%= filename %></td>
     50         <td align=right><%= floor(time / 1000) %></td>
     51       </tr>
     52       <tr>
     53       <% end %>
     54     </tr>
     55     <tr>
     56       <th align=left valign=top rowspan="<%= Enum.min([5, Enum.count(@check_timings)]) %>">Slowest Checks</th>
     57       <%= for {check, time} <- Enum.take(@check_timings, 5) do %>
     58         <td><%= check |> to_string() |> String.replace(~r/^Elixir./, "") %></td>
     59         <td></td>
     60         <td align=right><%= floor(time / 1000) %></td>
     61       </tr>
     62       <tr>
     63       <% end %>
     64     </tr>
     65     <tr>
     66       <th align=left valign=top rowspan="<%= Enum.min([5, Enum.count(@check_file_timings)]) %>">Slowest Checks/Files</th>
     67       <%= for {{check, filename}, time} <- Enum.take(@check_file_timings, 5) do %>
     68         <td><%= check |> to_string() |> String.replace(~r/^Elixir./, "") %></td>
     69         <td><%= filename %></td>
     70         <td align=right><%= floor(time / 1000) %></td>
     71       </tr>
     72       <tr>
     73       <% end %>
     74     </tr>
     75   </table>
     76 
     77 </body>
     78 
     79 </html>