rack-mini-profiler 0.1.21 → 0.1.26

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rack-mini-profiler might be problematic. Click here for more details.

Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/Ruby/CHANGELOG +135 -0
  3. data/{README.md → Ruby/README.md} +40 -9
  4. data/Ruby/lib/html/flamegraph.html +325 -0
  5. data/Ruby/lib/html/includes.css +451 -0
  6. data/{lib → Ruby/lib}/html/includes.js +135 -24
  7. data/{lib → Ruby/lib}/html/includes.less +38 -35
  8. data/{lib → Ruby/lib}/html/includes.tmpl +40 -15
  9. data/{lib → Ruby/lib}/html/jquery.1.7.1.js +1 -1
  10. data/{lib → Ruby/lib}/html/jquery.tmpl.js +1 -1
  11. data/{lib → Ruby/lib}/html/list.css +0 -0
  12. data/{lib → Ruby/lib}/html/list.js +7 -6
  13. data/{lib → Ruby/lib}/html/list.tmpl +0 -0
  14. data/Ruby/lib/html/profile_handler.js +1 -0
  15. data/{lib → Ruby/lib}/html/share.html +0 -0
  16. data/{lib → Ruby/lib}/mini_profiler/client_settings.rb +0 -0
  17. data/{lib → Ruby/lib}/mini_profiler/client_timer_struct.rb +1 -1
  18. data/{lib → Ruby/lib}/mini_profiler/config.rb +57 -52
  19. data/{lib → Ruby/lib}/mini_profiler/context.rb +11 -10
  20. data/Ruby/lib/mini_profiler/custom_timer_struct.rb +22 -0
  21. data/Ruby/lib/mini_profiler/flame_graph.rb +54 -0
  22. data/{lib → Ruby/lib}/mini_profiler/gc_profiler.rb +35 -12
  23. data/{lib → Ruby/lib}/mini_profiler/page_timer_struct.rb +7 -2
  24. data/{lib → Ruby/lib}/mini_profiler/profiler.rb +209 -144
  25. data/{lib → Ruby/lib}/mini_profiler/profiling_methods.rb +131 -108
  26. data/{lib → Ruby/lib}/mini_profiler/request_timer_struct.rb +20 -1
  27. data/{lib → Ruby/lib}/mini_profiler/sql_timer_struct.rb +0 -0
  28. data/{lib → Ruby/lib}/mini_profiler/storage/abstract_store.rb +31 -27
  29. data/{lib → Ruby/lib}/mini_profiler/storage/file_store.rb +111 -109
  30. data/{lib → Ruby/lib}/mini_profiler/storage/memcache_store.rb +11 -9
  31. data/{lib → Ruby/lib}/mini_profiler/storage/memory_store.rb +65 -63
  32. data/Ruby/lib/mini_profiler/storage/redis_store.rb +54 -0
  33. data/{lib → Ruby/lib}/mini_profiler/timer_struct.rb +0 -0
  34. data/Ruby/lib/mini_profiler/version.rb +5 -0
  35. data/Ruby/lib/mini_profiler_rails/railtie.rb +89 -0
  36. data/Ruby/lib/patches/net_patches.rb +14 -0
  37. data/{lib → Ruby/lib}/patches/sql_patches.rb +89 -48
  38. data/{lib → Ruby/lib}/rack-mini-profiler.rb +1 -0
  39. data/rack-mini-profiler.gemspec +6 -4
  40. metadata +53 -64
  41. data/CHANGELOG +0 -99
  42. data/lib/html/includes.css +0 -75
  43. data/lib/html/profile_handler.js +0 -62
  44. data/lib/mini_profiler/storage/redis_store.rb +0 -44
  45. data/lib/mini_profiler_rails/railtie.rb +0 -85
@@ -1,5 +1,6 @@
1
1
  require 'mini_profiler/profiler'
2
2
  require 'patches/sql_patches'
3
+ require 'patches/net_patches'
3
4
 
4
5
  if defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i >= 3
5
6
  require 'mini_profiler_rails/railtie'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rack-mini-profiler"
3
- s.version = "0.1.21"
3
+ s.version = "0.1.26"
4
4
  s.summary = "Profiles loading speed for rack applications."
5
5
  s.authors = ["Sam Saffron", "Robin Ward","Aleks Totic"]
6
6
  s.description = "Profiling toolkit for Rack applications with Rails integration. Client Side profiling, DB profiling and Server profiling."
@@ -8,10 +8,10 @@ Gem::Specification.new do |s|
8
8
  s.homepage = "http://miniprofiler.com"
9
9
  s.files = [
10
10
  'rack-mini-profiler.gemspec',
11
- ].concat( Dir.glob('lib/**/*').reject {|f| File.directory?(f) || f =~ /~$/ } )
11
+ ].concat( Dir.glob('Ruby/lib/**/*').reject {|f| File.directory?(f) || f =~ /~$/ } )
12
12
  s.extra_rdoc_files = [
13
- "README.md",
14
- "CHANGELOG"
13
+ "Ruby/README.md",
14
+ "Ruby/CHANGELOG"
15
15
  ]
16
16
  s.add_runtime_dependency 'rack', '>= 1.1.3'
17
17
  if RUBY_VERSION < "1.9"
@@ -21,4 +21,6 @@ Gem::Specification.new do |s|
21
21
  s.add_development_dependency 'rake'
22
22
  s.add_development_dependency 'rack-test'
23
23
  s.add_development_dependency 'activerecord', '~> 3.0'
24
+
25
+ s.require_paths = ["Ruby/lib"]
24
26
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mini-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
5
- prerelease:
4
+ version: 0.1.26
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sam Saffron
@@ -11,60 +10,53 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-09-16 00:00:00.000000000 Z
13
+ date: 2013-04-11 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rack
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - '>='
22
20
  - !ruby/object:Gem::Version
23
21
  version: 1.1.3
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - '>='
30
27
  - !ruby/object:Gem::Version
31
28
  version: 1.1.3
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: rake
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '0'
40
36
  type: :development
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: rack-test
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ! '>='
47
+ - - '>='
54
48
  - !ruby/object:Gem::Version
55
49
  version: '0'
56
50
  type: :development
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - '>='
62
55
  - !ruby/object:Gem::Version
63
56
  version: '0'
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: activerecord
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
61
  - - ~>
70
62
  - !ruby/object:Gem::Version
@@ -72,7 +64,6 @@ dependencies:
72
64
  type: :development
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
68
  - - ~>
78
69
  - !ruby/object:Gem::Version
@@ -83,70 +74,68 @@ email: sam.saffron@gmail.com
83
74
  executables: []
84
75
  extensions: []
85
76
  extra_rdoc_files:
86
- - README.md
87
- - CHANGELOG
77
+ - Ruby/README.md
78
+ - Ruby/CHANGELOG
88
79
  files:
89
80
  - rack-mini-profiler.gemspec
90
- - lib/mini_profiler/sql_timer_struct.rb
91
- - lib/mini_profiler/request_timer_struct.rb
92
- - lib/mini_profiler/timer_struct.rb
93
- - lib/mini_profiler/page_timer_struct.rb
94
- - lib/mini_profiler/client_settings.rb
95
- - lib/mini_profiler/context.rb
96
- - lib/mini_profiler/config.rb
97
- - lib/mini_profiler/profiling_methods.rb
98
- - lib/mini_profiler/gc_profiler.rb
99
- - lib/mini_profiler/client_timer_struct.rb
100
- - lib/mini_profiler/profiler.rb
101
- - lib/mini_profiler/storage/memory_store.rb
102
- - lib/mini_profiler/storage/file_store.rb
103
- - lib/mini_profiler/storage/redis_store.rb
104
- - lib/mini_profiler/storage/abstract_store.rb
105
- - lib/mini_profiler/storage/memcache_store.rb
106
- - lib/rack-mini-profiler.rb
107
- - lib/html/jquery.1.7.1.js
108
- - lib/html/includes.tmpl
109
- - lib/html/share.html
110
- - lib/html/includes.less
111
- - lib/html/list.css
112
- - lib/html/includes.js
113
- - lib/html/jquery.tmpl.js
114
- - lib/html/list.tmpl
115
- - lib/html/profile_handler.js
116
- - lib/html/includes.css
117
- - lib/html/list.js
118
- - lib/mini_profiler_rails/railtie.rb
119
- - lib/patches/sql_patches.rb
120
- - README.md
121
- - CHANGELOG
81
+ - Ruby/lib/mini_profiler_rails/railtie.rb
82
+ - Ruby/lib/html/list.css
83
+ - Ruby/lib/html/jquery.tmpl.js
84
+ - Ruby/lib/html/list.tmpl
85
+ - Ruby/lib/html/share.html
86
+ - Ruby/lib/html/includes.less
87
+ - Ruby/lib/html/profile_handler.js
88
+ - Ruby/lib/html/includes.tmpl
89
+ - Ruby/lib/html/includes.js
90
+ - Ruby/lib/html/list.js
91
+ - Ruby/lib/html/jquery.1.7.1.js
92
+ - Ruby/lib/html/flamegraph.html
93
+ - Ruby/lib/html/includes.css
94
+ - Ruby/lib/mini_profiler/context.rb
95
+ - Ruby/lib/mini_profiler/page_timer_struct.rb
96
+ - Ruby/lib/mini_profiler/storage/file_store.rb
97
+ - Ruby/lib/mini_profiler/storage/memcache_store.rb
98
+ - Ruby/lib/mini_profiler/storage/memory_store.rb
99
+ - Ruby/lib/mini_profiler/storage/abstract_store.rb
100
+ - Ruby/lib/mini_profiler/storage/redis_store.rb
101
+ - Ruby/lib/mini_profiler/client_settings.rb
102
+ - Ruby/lib/mini_profiler/profiling_methods.rb
103
+ - Ruby/lib/mini_profiler/gc_profiler.rb
104
+ - Ruby/lib/mini_profiler/client_timer_struct.rb
105
+ - Ruby/lib/mini_profiler/sql_timer_struct.rb
106
+ - Ruby/lib/mini_profiler/config.rb
107
+ - Ruby/lib/mini_profiler/custom_timer_struct.rb
108
+ - Ruby/lib/mini_profiler/version.rb
109
+ - Ruby/lib/mini_profiler/timer_struct.rb
110
+ - Ruby/lib/mini_profiler/profiler.rb
111
+ - Ruby/lib/mini_profiler/request_timer_struct.rb
112
+ - Ruby/lib/mini_profiler/flame_graph.rb
113
+ - Ruby/lib/patches/net_patches.rb
114
+ - Ruby/lib/patches/sql_patches.rb
115
+ - Ruby/lib/rack-mini-profiler.rb
116
+ - Ruby/README.md
117
+ - Ruby/CHANGELOG
122
118
  homepage: http://miniprofiler.com
123
119
  licenses: []
120
+ metadata: {}
124
121
  post_install_message:
125
122
  rdoc_options: []
126
123
  require_paths:
127
- - lib
124
+ - Ruby/lib
128
125
  required_ruby_version: !ruby/object:Gem::Requirement
129
- none: false
130
126
  requirements:
131
- - - ! '>='
127
+ - - '>='
132
128
  - !ruby/object:Gem::Version
133
129
  version: '0'
134
- segments:
135
- - 0
136
- hash: -668836557
137
130
  required_rubygems_version: !ruby/object:Gem::Requirement
138
- none: false
139
131
  requirements:
140
- - - ! '>='
132
+ - - '>='
141
133
  - !ruby/object:Gem::Version
142
134
  version: '0'
143
- segments:
144
- - 0
145
- hash: -668836557
146
135
  requirements: []
147
136
  rubyforge_project:
148
- rubygems_version: 1.8.24
137
+ rubygems_version: 2.0.2
149
138
  signing_key:
150
- specification_version: 3
139
+ specification_version: 4
151
140
  summary: Profiles loading speed for rack applications.
152
141
  test_files: []
data/CHANGELOG DELETED
@@ -1,99 +0,0 @@
1
- 28-June-2012 - Sam
2
-
3
- * Started change log
4
- * Corrected profiler so it properly captures POST requests (was supressing non 200s)
5
- * Amended Rack.MiniProfiler.config[:user_provider] to use ip addres for identity
6
- * Fixed bug where unviewed missing ids never got cleared
7
- * Supress all '/assets/' in the rails tie (makes debugging easier)
8
- * record_sql was mega buggy
9
- * added MemcacheStore
10
-
11
- 9-July-2012 - Sam
12
-
13
- * Cleaned up mechanism for profiling in production, all you need to do now
14
- is call Rack::MiniProfiler.authorize_request to get profiling working in
15
- production
16
- * Added option to display full backtraces pp=full-backtrace
17
- * Cleaned up railties, got rid of the post authorize callback
18
- * Version 0.1.3
19
-
20
- 12-July-2012 - Sam
21
-
22
- * Fixed incorrect profiling steps (was not indenting or measuring start time right
23
- * Implemented native PG and MySql2 interceptors, this gives way more accurate times
24
- * Refactored context so its a proper class and not a hash
25
- * Added some more client probing built in to rails
26
- * More tests
27
-
28
- 18-July-2012 - Sam
29
-
30
- * Added First Paint time for chrome
31
- * Bug fix to ensure non Rails installs have mini profiler
32
- * Version 0.1.7
33
-
34
- 30-July-2012 - Sam
35
-
36
- * Made compliant with ancient versions of Rack (including Rack used by Rails2)
37
- * Fixed broken share link
38
- * Fixed crashes on startup (in MemoryStore and FileStore)
39
- * Version 0.1.8
40
- * Unicode fix
41
- * Version 0.1.9
42
-
43
- 7-August-2012 - Sam
44
-
45
- * Added option to disable profiler for the current session (pp=disable / pp=enable)
46
- * yajl compatability contributed by Sven Riedel
47
-
48
- 10-August-2012 - Sam
49
-
50
- * Added basic prepared statement profiling for postgres
51
-
52
- 20-August-2012 - Sam
53
-
54
- * 1.12.pre
55
- * Cap X-MiniProfiler-Ids at 10, otherwise the header can get killed
56
-
57
- 3-September-2012 - Sam
58
-
59
- * 1.13.pre
60
- * pg gem prepared statements were not being logged correctly
61
- * added setting config.backtrace_ignores = [] - an array of regexes that match on caller lines that get ignored
62
- * added setting config.backtrace_includes = [] - an array of regexes that get included in the trace by default
63
- * cleaned up the way client settings are stored
64
- * made pp=full-backtrace "sticky"
65
- * added pp=normal-backtrace to clear the "sticky" state
66
- * change "pp=sample" to work with "caller" no need for stack trace gem
67
-
68
- 4-September-2012 - Sam
69
-
70
- * 1.15.pre
71
- * fixed annoying bug where client settings were not sticking
72
- * fixed long standing issue with Rack::ConditionalGet stopping MiniProfiler from working properly
73
-
74
- 5-September-2012 - Sam
75
-
76
- * 1.16
77
- * fixed long standing problem specs (issue with memory store)
78
- * fixed issue where profiler would be dumped when you got a 404 in production (and any time rails is bypassed)
79
- * implemented stacktrace properly
80
-
81
- 9-September-2012 - Sam
82
-
83
- * 1.17
84
- * pp=sample was bust unless stacktrace was installed
85
-
86
- 10-September-2012 - Sam
87
-
88
- * 1.19
89
- * fix compat issue with 1.8.7
90
-
91
- 12-September-2012 - Sam
92
-
93
- * 1.20
94
- * Added pp=profile-gc , it allows you to profile the GC in Ruby 1.9.3
95
-
96
- 17-September-2012
97
- * 1.21
98
- * New MemchacedStore
99
- * Rails 4 support
@@ -1,75 +0,0 @@
1
- .profiler-result,.profiler-queries{color:#555;line-height:1;font-size:12px;}.profiler-result pre,.profiler-queries pre,.profiler-result code,.profiler-queries code,.profiler-result label,.profiler-queries label,.profiler-result table,.profiler-queries table,.profiler-result tbody,.profiler-queries tbody,.profiler-result thead,.profiler-queries thead,.profiler-result tfoot,.profiler-queries tfoot,.profiler-result tr,.profiler-queries tr,.profiler-result th,.profiler-queries th,.profiler-result td,.profiler-queries td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;background-color:transparent;overflow:visible;max-height:none;}
2
- .profiler-result table,.profiler-queries table{border-collapse:collapse;border-spacing:0;}
3
- .profiler-result a,.profiler-queries a,.profiler-result a:hover,.profiler-queries a:hover{cursor:pointer;color:#0077cc;}
4
- .profiler-result a,.profiler-queries a{text-decoration:none;}.profiler-result a:hover,.profiler-queries a:hover{text-decoration:underline;}
5
- .profiler-result{font-family:Helvetica,Arial,sans-serif;}.profiler-result .profiler-toggle-duration-with-children{float:right;}
6
- .profiler-result table.profiler-client-timings{margin-top:10px;}
7
- .profiler-result .profiler-label{color:#555555;overflow:hidden;text-overflow:ellipsis;}
8
- .profiler-result .profiler-unit{color:#aaaaaa;}
9
- .profiler-result .profiler-trivial{display:none;}.profiler-result .profiler-trivial td,.profiler-result .profiler-trivial td *{color:#aaaaaa !important;}
10
- .profiler-result pre,.profiler-result code,.profiler-result .profiler-number,.profiler-result .profiler-unit{font-family:Consolas,monospace,serif;}
11
- .profiler-result .profiler-number{color:#111111;}
12
- .profiler-result .profiler-info{text-align:right;}.profiler-result .profiler-info .profiler-name{float:left;}
13
- .profiler-result .profiler-info .profiler-server-time{white-space:nowrap;}
14
- .profiler-result .profiler-timings th{background-color:#fff;color:#aaaaaa;text-align:right;}
15
- .profiler-result .profiler-timings th,.profiler-result .profiler-timings td{white-space:nowrap;}
16
- .profiler-result .profiler-timings .profiler-duration-with-children{display:none;}
17
- .profiler-result .profiler-timings .profiler-duration{font-family:Consolas,monospace,serif;color:#111111;text-align:right;}
18
- .profiler-result .profiler-timings .profiler-indent{letter-spacing:4px;}
19
- .profiler-result .profiler-timings .profiler-queries-show .profiler-number,.profiler-result .profiler-timings .profiler-queries-show .profiler-unit{color:#0077cc;}
20
- .profiler-result .profiler-timings .profiler-queries-duration{padding-left:6px;}
21
- .profiler-result .profiler-timings .profiler-percent-in-sql{white-space:nowrap;text-align:right;}
22
- .profiler-result .profiler-timings tfoot td{padding-top:10px;text-align:right;}.profiler-result .profiler-timings tfoot td a{font-size:95%;display:inline-block;margin-left:12px;}.profiler-result .profiler-timings tfoot td a:first-child{float:left;margin-left:0px;}
23
- .profiler-result .profiler-queries{font-family:Helvetica,Arial,sans-serif;}.profiler-result .profiler-queries .profiler-stack-trace{margin-bottom:15px;}
24
- .profiler-result .profiler-queries pre{font-family:Consolas,monospace,serif;white-space:pre-wrap;}
25
- .profiler-result .profiler-queries th{background-color:#fff;border-bottom:1px solid #555;font-weight:bold;padding:15px;white-space:nowrap;}
26
- .profiler-result .profiler-queries td{padding:15px;text-align:left;background-color:#fff;}.profiler-result .profiler-queries td:last-child{padding-right:25px;}
27
- .profiler-result .profiler-queries .profiler-odd td{background-color:#e5e5e5;}
28
- .profiler-result .profiler-queries .profiler-since-start,.profiler-result .profiler-queries .profiler-duration{text-align:right;}
29
- .profiler-result .profiler-queries .profiler-info div{text-align:right;margin-bottom:5px;}
30
- .profiler-result .profiler-queries .profiler-gap-info,.profiler-result .profiler-queries .profiler-gap-info td{background-color:#ccc;}
31
- .profiler-result .profiler-queries .profiler-gap-info .profiler-unit{color:#777;}
32
- .profiler-result .profiler-queries .profiler-gap-info .profiler-info{text-align:right;}
33
- .profiler-result .profiler-queries .profiler-gap-info.profiler-trivial-gaps{display:none;}
34
- .profiler-result .profiler-queries .profiler-trivial-gap-container{text-align:center;}
35
- .profiler-result .profiler-queries .str{color:#800000;}
36
- .profiler-result .profiler-queries .kwd{color:#00008b;}
37
- .profiler-result .profiler-queries .com{color:#808080;}
38
- .profiler-result .profiler-queries .typ{color:#2b91af;}
39
- .profiler-result .profiler-queries .lit{color:#800000;}
40
- .profiler-result .profiler-queries .pun{color:#000000;}
41
- .profiler-result .profiler-queries .pln{color:#000000;}
42
- .profiler-result .profiler-queries .tag{color:#800000;}
43
- .profiler-result .profiler-queries .atn{color:#ff0000;}
44
- .profiler-result .profiler-queries .atv{color:#0000ff;}
45
- .profiler-result .profiler-queries .dec{color:#800080;}
46
- .profiler-result .profiler-warning,.profiler-result .profiler-warning *,.profiler-result .profiler-warning .profiler-queries-show,.profiler-result .profiler-warning .profiler-queries-show .profiler-unit{color:#f00;}.profiler-result .profiler-warning:hover,.profiler-result .profiler-warning *:hover,.profiler-result .profiler-warning .profiler-queries-show:hover,.profiler-result .profiler-warning .profiler-queries-show .profiler-unit:hover{color:#f00;}
47
- .profiler-result .profiler-nuclear{color:#f00;font-weight:bold;padding-right:2px;}.profiler-result .profiler-nuclear:hover{color:#f00;}
48
- .profiler-results{z-index:2147483643;position:fixed;top:0px;}.profiler-results.profiler-left{left:0px;}.profiler-results.profiler-left.profiler-no-controls .profiler-result:last-child .profiler-button,.profiler-results.profiler-left .profiler-controls{-webkit-border-bottom-right-radius:10px;-moz-border-radius-bottomright:10px;border-bottom-right-radius:10px;}
49
- .profiler-results.profiler-left .profiler-button,.profiler-results.profiler-left .profiler-controls{border-right:1px solid #888888;}
50
- .profiler-results.profiler-right{right:0px;}.profiler-results.profiler-right.profiler-no-controls .profiler-result:last-child .profiler-button,.profiler-results.profiler-right .profiler-controls{-webkit-border-bottom-left-radius:10px;-moz-border-radius-bottomleft:10px;border-bottom-left-radius:10px;}
51
- .profiler-results.profiler-right .profiler-button,.profiler-results.profiler-right .profiler-controls{border-left:1px solid #888888;}
52
- .profiler-results .profiler-button,.profiler-results .profiler-controls{display:none;z-index:2147483640;border-bottom:1px solid #888888;background-color:#fff;padding:4px 7px;text-align:right;cursor:pointer;}.profiler-results .profiler-button.profiler-button-active,.profiler-results .profiler-controls.profiler-button-active{background-color:maroon;}.profiler-results .profiler-button.profiler-button-active .profiler-number,.profiler-results .profiler-controls.profiler-button-active .profiler-number,.profiler-results .profiler-button.profiler-button-active .profiler-nuclear,.profiler-results .profiler-controls.profiler-button-active .profiler-nuclear{color:#fff;font-weight:bold;}
53
- .profiler-results .profiler-button.profiler-button-active .profiler-unit,.profiler-results .profiler-controls.profiler-button-active .profiler-unit{color:#fff;font-weight:normal;}
54
- .profiler-results .profiler-controls{display:block;font-size:12px;font-family:Consolas,monospace,serif;cursor:default;text-align:center;}.profiler-results .profiler-controls span{border-right:1px solid #aaaaaa;padding-right:5px;margin-right:5px;cursor:pointer;}
55
- .profiler-results .profiler-controls span:last-child{border-right:none;}
56
- .profiler-results .profiler-popup{display:none;z-index:2147483641;position:absolute;background-color:#fff;border:1px solid #aaa;padding:5px 10px;text-align:left;line-height:18px;overflow:auto;-moz-box-shadow:0px 1px 15px #555555;-webkit-box-shadow:0px 1px 15px #555555;box-shadow:0px 1px 15px #555555;}.profiler-results .profiler-popup .profiler-info{margin-bottom:3px;padding-bottom:2px;border-bottom:1px solid #ddd;}.profiler-results .profiler-popup .profiler-info .profiler-name{font-size:110%;font-weight:bold;}.profiler-results .profiler-popup .profiler-info .profiler-name .profiler-overall-duration{display:none;}
57
- .profiler-results .profiler-popup .profiler-info .profiler-server-time{font-size:95%;}
58
- .profiler-results .profiler-popup .profiler-timings th,.profiler-results .profiler-popup .profiler-timings td{padding-left:6px;padding-right:6px;}
59
- .profiler-results .profiler-popup .profiler-timings th{font-size:95%;padding-bottom:3px;}
60
- .profiler-results .profiler-popup .profiler-timings .profiler-label{max-width:275px;}
61
- .profiler-results .profiler-queries{display:none;z-index:2147483643;position:absolute;overflow-y:auto;overflow-x:auto;background-color:#fff;}.profiler-results .profiler-queries th{font-size:17px;}
62
- .profiler-results.profiler-min .profiler-result{display:none;}
63
- .profiler-results.profiler-min .profiler-controls span{display:none;}
64
- .profiler-results.profiler-min .profiler-controls .profiler-min-max{border-right:none;padding:0px;margin:0px;}
65
- .profiler-queries-bg{z-index:2147483642;display:none;background:#000;opacity:0.7;position:absolute;top:0px;left:0px;min-width:100%;}
66
- .profiler-result-full .profiler-result{width:950px;margin:30px auto;}.profiler-result-full .profiler-result .profiler-button{display:none;}
67
- .profiler-result-full .profiler-result .profiler-popup .profiler-info{font-size:25px;border-bottom:1px solid #aaaaaa;padding-bottom:3px;margin-bottom:25px;}.profiler-result-full .profiler-result .profiler-popup .profiler-info .profiler-overall-duration{padding-right:20px;font-size:80%;color:#888;}
68
- .profiler-result-full .profiler-result .profiler-popup .profiler-timings td,.profiler-result-full .profiler-result .profiler-popup .profiler-timings th{padding-left:8px;padding-right:8px;}
69
- .profiler-result-full .profiler-result .profiler-popup .profiler-timings th{padding-bottom:7px;}
70
- .profiler-result-full .profiler-result .profiler-popup .profiler-timings td{font-size:14px;padding-bottom:4px;}.profiler-result-full .profiler-result .profiler-popup .profiler-timings td:first-child{padding-left:10px;}
71
- .profiler-result-full .profiler-result .profiler-popup .profiler-timings .profiler-label{max-width:550px;}
72
- .profiler-result-full .profiler-result .profiler-queries{margin:25px 0;}.profiler-result-full .profiler-result .profiler-queries table{width:100%;}
73
- .profiler-result-full .profiler-result .profiler-queries th{font-size:16px;color:#555;line-height:20px;}
74
- .profiler-result-full .profiler-result .profiler-queries td{padding:15px 10px;text-align:left;}
75
- .profiler-result-full .profiler-result .profiler-queries .profiler-info div{text-align:right;margin-bottom:5px;}
@@ -1,62 +0,0 @@
1
- <script type="text/javascript">
2
- (function(){{
3
- var init = function() {{
4
- var load = function(s,f){{
5
- var sc = document.createElement('script');
6
- sc.async = 'async';
7
- sc.type = 'text/javascript';
8
- sc.src = s;
9
- var l = false;
10
- sc.onload = sc.onreadystatechange = function(_, abort) {{
11
- if (!l && (!sc.readyState || /loaded|complete/.test(sc.readyState))) {{
12
- if (!abort){{l=true; f();}}
13
- }}
14
- }};
15
-
16
- document.getElementsByTagName('head')[0].appendChild(sc);
17
- }};
18
-
19
- var initMp = function(){{
20
- load('{path}includes.js?v={version}',function(){{
21
- MiniProfiler.init({{
22
- ids: {ids},
23
- path: '{path}',
24
- version: '{version}',
25
- renderPosition: '{position}',
26
- showTrivial: {showTrivial},
27
- showChildrenTime: {showChildren},
28
- maxTracesToShow: {maxTracesToShow},
29
- showControls: {showControls},
30
- currentId: '{currentId}',
31
- authorized: {authorized}
32
- }});
33
- }});
34
- }};
35
- if ({useExistingjQuery} && typeof(jQuery) === 'function') {{
36
- jQueryMP = jQuery;
37
- initMp();
38
- }} else {{
39
- load('{path}jquery.1.7.1.js?v={version}', initMp);
40
- }}
41
-
42
- }};
43
-
44
- var w = 0;
45
- var f = false;
46
- var deferInit = function(){{
47
- if (f) return;
48
- if (window.performance && window.performance.timing && window.performance.timing.loadEventEnd == 0 && w < 10000){{
49
- setTimeout(deferInit, 100);
50
- w += 100;
51
- }} else {{
52
- f = true;
53
- init();
54
- }}
55
- }};
56
- if (document.addEventListener) {{
57
- document.addEventListener('DOMContentLoaded',deferInit);
58
- }}
59
- var o = window.onload;
60
- window.onload = function(){{if(o)o; deferInit()}};
61
- }})();
62
- </script>