Sha256: 1dd35dc295a21bc7a7b47dec306def37175197fb8620c3a3ee3d459377072c38

Contents?: true

Size: 1.35 KB

Versions: 38

Compression:

Stored size: 1.35 KB

Contents

<script src="/oneapm/assets/javascript/transaction_sample.js" type="text/javascript"></script>
<div class="rows">
  <div class="col-lg-12">
    <h3> 数据库查询分析(Explain) </h3>

    <table class="table table-striped sample-table">
      <% colspan = @explanation ? @explanation.length : 1 %>
      <% if @sql %>
        <tr>
          <th width="100">
            查询
          </th>
          <td colspan=<%= colspan %>>
            <div class="sql_statement code">
              <%= line_wrap_sql(@sql) %>
            </div>
          </td>
        </tr>
      <% end %>

      <% if @obfuscated_sql %>
        <tr>
          <th width="100">
            Obfuscated Query
          </th>
          <td colspan=<%= colspan %>>
            <small>
              <div class="sql_statement code">
                <%= line_wrap_sql(@obfuscated_sql) %>
              </div>
            </small>
          </td>
        </tr>
      <% end %>
      <tr>
        <th align=right>
          耗时
        </th>
        <td colspan=<%= colspan %>>
          <%= with_delimiter(to_ms(@segment.duration)) %>ms
        </td>
      </tr>
    </table>
    <hr>
    <table class="table table-striped sample-table">
      <% if @explanation %>
        <%= render :partial => 'explain_plans' %>
      <% end %>
    </table>
    <hr />
    <%= render_backtrace %>
  </div>
</div>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
oneapm_rpm-1.2.9.rc1 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.8 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.8.rc1 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.7 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.7.rc1 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.6 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.6.rc1 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.5 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.5.rc1 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.4 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.4.rc1 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.3 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.3.rc2 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.2 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.2.rc lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.1 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.1.rc lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb
oneapm_rpm-1.2.0 lib/one_apm/rack/developer_mode/views/oneapm/explain_sql.html.erb