# File lib/puppet/rails/benchmark.rb, line 46
46:   def write_benchmarks
47:     return unless time_debug?
48: 
49:     branch = %x{git branch}.split("\n").find { |l| l =~ /^\*/ }.sub("* ", '')
50: 
51:     file = "/tmp/time_debugging.yaml"
52: 
53:     require 'yaml'
54: 
55:     if FileTest.exist?(file)
56:       data = YAML.load_file(file)
57:     else
58:       data = {}
59:     end
60:     data[branch] = $benchmarks
61:     Puppet::Util.secure_open(file, "w") { |f| f.print YAML.dump(data) }
62:   end