Sha256: 423d5db943674ab44aa8d2cd430a2a22372e099cc08dfa62d1bdceca8684d64e
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
<% content_for :navbar_left do %> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Profiles <b class="caret"></b></a> <ul class="dropdown-menu"> <% @runs.each_with_index do |run, run_id| %> <li><a href="/__stackprofiler/?run_id=<%= run_id %>"><%= run.url %></a> (<b><%= run.duration %>s</b>)</li> <% end %> </ul> </li> <% end %> <div id="foo" style=""> <div id="a"> <div id="jstree_demo"></div> </div> <div id="b"> <div id="source-display"></div> </div> </div> <script> $(function() { $('#foo').split({ orientation: 'horizontal', limit: 10, position: '40%' }); var $tree = $('#jstree_demo'); $tree.jstree({ core: { data: { url: '/__stackprofiler/json?run_id=<%= @run_id %>' } } }); $tree.on("changed.jstree", function (e, data) { var addrs = data.node.data.addrs; var url = "/__stackprofiler/code/" + addrs[0] + "?run_id=<%= @run_id %>"; $("#source-display").load(url); }); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stackprofiler-0.0.1 | lib/stackprofiler/web_ui/views/index.erb |