Skip to content

Commit

Permalink
removed profiling and equal?
Browse files Browse the repository at this point in the history
  • Loading branch information
BraunTom committed Apr 7, 2019
1 parent be5b1fd commit f266629
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion app/api/v_sphere/folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def create_vm(cpu, ram, capacity, name, cluster)
VSphere::VirtualMachine.new vm, folder: self
end

def equal?(other)
def eql?(other)
(other.is_a? VSphere::Folder) && other.name == name
end

Expand Down
8 changes: 0 additions & 8 deletions app/views/vms/_table.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<% RubyProf.start %>
<table data-toggle="datatable" class="table" id=<%= id %> <%= datatable_options.map{ |k,v| "data-#{k}=#{v}" }.join(' ') %>>
<thead>
<tr>
Expand Down Expand Up @@ -50,10 +49,3 @@
<% end %> <%# vms.each %>
</tbody>
</table>

<%
results = RubyProf.stop
printer = RubyProf::CallStackPrinter.new(results)
# to save results to tmp/profile_data.html
File.open("tmp/profile_data.html", 'w') { |file| printer.print(file) }
%>

0 comments on commit f266629

Please sign in to comment.