rack-mini-profiler 0.1.19 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/Ruby/CHANGELOG +127 -0
  3. data/{README.md → Ruby/README.md} +40 -9
  4. data/Ruby/lib/html/includes.css +451 -0
  5. data/{lib → Ruby/lib}/html/includes.js +135 -24
  6. data/{lib → Ruby/lib}/html/includes.less +38 -35
  7. data/{lib → Ruby/lib}/html/includes.tmpl +40 -15
  8. data/{lib → Ruby/lib}/html/jquery.1.7.1.js +1 -1
  9. data/{lib → Ruby/lib}/html/jquery.tmpl.js +1 -1
  10. data/{lib → Ruby/lib}/html/list.css +0 -0
  11. data/{lib → Ruby/lib}/html/list.js +7 -6
  12. data/{lib → Ruby/lib}/html/list.tmpl +0 -0
  13. data/Ruby/lib/html/profile_handler.js +1 -0
  14. data/{lib → Ruby/lib}/html/share.html +0 -0
  15. data/{lib → Ruby/lib}/mini_profiler/client_settings.rb +0 -0
  16. data/{lib → Ruby/lib}/mini_profiler/client_timer_struct.rb +1 -1
  17. data/{lib → Ruby/lib}/mini_profiler/config.rb +57 -52
  18. data/{lib → Ruby/lib}/mini_profiler/context.rb +11 -10
  19. data/Ruby/lib/mini_profiler/custom_timer_struct.rb +22 -0
  20. data/Ruby/lib/mini_profiler/flame_graph.rb +54 -0
  21. data/Ruby/lib/mini_profiler/gc_profiler.rb +107 -0
  22. data/{lib → Ruby/lib}/mini_profiler/page_timer_struct.rb +7 -2
  23. data/{lib → Ruby/lib}/mini_profiler/profiler.rb +214 -142
  24. data/{lib → Ruby/lib}/mini_profiler/profiling_methods.rb +131 -100
  25. data/{lib → Ruby/lib}/mini_profiler/request_timer_struct.rb +20 -1
  26. data/{lib → Ruby/lib}/mini_profiler/sql_timer_struct.rb +0 -0
  27. data/{lib → Ruby/lib}/mini_profiler/storage/abstract_store.rb +31 -27
  28. data/{lib → Ruby/lib}/mini_profiler/storage/file_store.rb +111 -109
  29. data/Ruby/lib/mini_profiler/storage/memcache_store.rb +53 -0
  30. data/{lib → Ruby/lib}/mini_profiler/storage/memory_store.rb +65 -63
  31. data/Ruby/lib/mini_profiler/storage/redis_store.rb +54 -0
  32. data/{lib → Ruby/lib}/mini_profiler/timer_struct.rb +0 -0
  33. data/Ruby/lib/mini_profiler/version.rb +5 -0
  34. data/{lib → Ruby/lib}/mini_profiler_rails/railtie.rb +3 -2
  35. data/Ruby/lib/patches/net_patches.rb +14 -0
  36. data/{lib → Ruby/lib}/patches/sql_patches.rb +89 -48
  37. data/{lib → Ruby/lib}/rack-mini-profiler.rb +2 -1
  38. data/rack-mini-profiler.gemspec +8 -6
  39. metadata +55 -65
  40. data/CHANGELOG +0 -83
  41. data/lib/html/includes.css +0 -75
  42. data/lib/html/profile_handler.js +0 -62
  43. data/lib/mini_profiler/storage/redis_store.rb +0 -44
@@ -1,6 +1,7 @@
1
1
  require 'mini_profiler/profiler'
2
2
  require 'patches/sql_patches'
3
+ require 'patches/net_patches'
3
4
 
4
- if defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 3
5
+ if defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i >= 3
5
6
  require 'mini_profiler_rails/railtie'
6
7
  end
@@ -1,17 +1,17 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rack-mini-profiler"
3
- s.version = "0.1.19"
3
+ s.version = "0.1.24"
4
4
  s.summary = "Profiles loading speed for rack applications."
5
- s.authors = ["Aleks Totic","Sam Saffron", "Robin Ward"]
6
- s.description = "Page loading speed displayed on every page. Optimize while you develop, performance is a feature."
5
+ s.authors = ["Sam Saffron", "Robin Ward","Aleks Totic"]
6
+ s.description = "Profiling toolkit for Rack applications with Rails integration. Client Side profiling, DB profiling and Server profiling."
7
7
  s.email = "sam.saffron@gmail.com"
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,70 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mini-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
5
- prerelease:
4
+ version: 0.1.24
6
5
  platform: ruby
7
6
  authors:
8
- - Aleks Totic
9
7
  - Sam Saffron
10
8
  - Robin Ward
9
+ - Aleks Totic
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-09-10 00:00:00.000000000 Z
13
+ date: 2013-04-07 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,79 +64,77 @@ 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
79
70
  version: '3.0'
80
- description: Page loading speed displayed on every page. Optimize while you develop,
81
- performance is a feature.
71
+ description: Profiling toolkit for Rack applications with Rails integration. Client
72
+ Side profiling, DB profiling and Server profiling.
82
73
  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/client_timer_struct.rb
99
- - lib/mini_profiler/profiler.rb
100
- - lib/mini_profiler/storage/memory_store.rb
101
- - lib/mini_profiler/storage/file_store.rb
102
- - lib/mini_profiler/storage/redis_store.rb
103
- - lib/mini_profiler/storage/abstract_store.rb
104
- - lib/rack-mini-profiler.rb
105
- - lib/html/jquery.1.7.1.js
106
- - lib/html/includes.tmpl
107
- - lib/html/share.html
108
- - lib/html/includes.less
109
- - lib/html/list.css
110
- - lib/html/includes.js
111
- - lib/html/jquery.tmpl.js
112
- - lib/html/list.tmpl
113
- - lib/html/profile_handler.js
114
- - lib/html/includes.css
115
- - lib/html/list.js
116
- - lib/mini_profiler_rails/railtie.rb
117
- - lib/patches/sql_patches.rb
118
- - README.md
119
- - 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/includes.css
93
+ - Ruby/lib/mini_profiler/context.rb
94
+ - Ruby/lib/mini_profiler/page_timer_struct.rb
95
+ - Ruby/lib/mini_profiler/storage/file_store.rb
96
+ - Ruby/lib/mini_profiler/storage/memcache_store.rb
97
+ - Ruby/lib/mini_profiler/storage/memory_store.rb
98
+ - Ruby/lib/mini_profiler/storage/abstract_store.rb
99
+ - Ruby/lib/mini_profiler/storage/redis_store.rb
100
+ - Ruby/lib/mini_profiler/client_settings.rb
101
+ - Ruby/lib/mini_profiler/profiling_methods.rb
102
+ - Ruby/lib/mini_profiler/gc_profiler.rb
103
+ - Ruby/lib/mini_profiler/client_timer_struct.rb
104
+ - Ruby/lib/mini_profiler/sql_timer_struct.rb
105
+ - Ruby/lib/mini_profiler/config.rb
106
+ - Ruby/lib/mini_profiler/custom_timer_struct.rb
107
+ - Ruby/lib/mini_profiler/version.rb
108
+ - Ruby/lib/mini_profiler/timer_struct.rb
109
+ - Ruby/lib/mini_profiler/profiler.rb
110
+ - Ruby/lib/mini_profiler/request_timer_struct.rb
111
+ - Ruby/lib/mini_profiler/flame_graph.rb
112
+ - Ruby/lib/patches/net_patches.rb
113
+ - Ruby/lib/patches/sql_patches.rb
114
+ - Ruby/lib/rack-mini-profiler.rb
115
+ - Ruby/README.md
116
+ - Ruby/CHANGELOG
120
117
  homepage: http://miniprofiler.com
121
118
  licenses: []
119
+ metadata: {}
122
120
  post_install_message:
123
121
  rdoc_options: []
124
122
  require_paths:
125
- - lib
123
+ - Ruby/lib
126
124
  required_ruby_version: !ruby/object:Gem::Requirement
127
- none: false
128
125
  requirements:
129
- - - ! '>='
126
+ - - '>='
130
127
  - !ruby/object:Gem::Version
131
128
  version: '0'
132
- segments:
133
- - 0
134
- hash: -352003811
135
129
  required_rubygems_version: !ruby/object:Gem::Requirement
136
- none: false
137
130
  requirements:
138
- - - ! '>='
131
+ - - '>='
139
132
  - !ruby/object:Gem::Version
140
133
  version: '0'
141
- segments:
142
- - 0
143
- hash: -352003811
144
134
  requirements: []
145
135
  rubyforge_project:
146
- rubygems_version: 1.8.24
136
+ rubygems_version: 2.0.2
147
137
  signing_key:
148
- specification_version: 3
138
+ specification_version: 4
149
139
  summary: Profiles loading speed for rack applications.
150
140
  test_files: []
data/CHANGELOG DELETED
@@ -1,83 +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
-
10
- 9-July-2012 - Sam
11
-
12
- * Cleaned up mechanism for profiling in production, all you need to do now
13
- is call Rack::MiniProfiler.authorize_request to get profiling working in
14
- production
15
- * Added option to display full backtraces pp=full-backtrace
16
- * Cleaned up railties, got rid of the post authorize callback
17
- * Version 0.1.3
18
-
19
- 12-July-2012 - Sam
20
-
21
- * Fixed incorrect profiling steps (was not indenting or measuring start time right
22
- * Implemented native PG and MySql2 interceptors, this gives way more accurate times
23
- * Refactored context so its a proper class and not a hash
24
- * Added some more client probing built in to rails
25
- * More tests
26
-
27
- 18-July-2012 - Sam
28
-
29
- * Added First Paint time for chrome
30
- * Bug fix to ensure non Rails installs have mini profiler
31
- * Version 0.1.7
32
-
33
- 30-July-2012 - Sam
34
-
35
- * Made compliant with ancient versions of Rack (including Rack used by Rails2)
36
- * Fixed broken share link
37
- * Fixed crashes on startup (in MemoryStore and FileStore)
38
- * Version 0.1.8
39
- * Unicode fix
40
- * Version 0.1.9
41
-
42
- 7-August-2012 - Sam
43
-
44
- * Added option to disable profiler for the current session (pp=disable / pp=enable)
45
- * yajl compatability contributed by Sven Riedel
46
-
47
- 10-August-2012 - Sam
48
-
49
- * Added basic prepared statement profiling for postgres
50
-
51
- 20-August-2012 - Sam
52
-
53
- * 1.12.pre
54
- * Cap X-MiniProfiler-Ids at 10, otherwise the header can get killed
55
-
56
- 3-September-2012 - Sam
57
-
58
- * 1.13.pre
59
- * pg gem prepared statements were not being logged correctly
60
- * added setting config.backtrace_ignores = [] - an array of regexes that match on caller lines that get ignored
61
- * added setting config.backtrace_includes = [] - an array of regexes that get included in the trace by default
62
- * cleaned up the way client settings are stored
63
- * made pp=full-backtrace "sticky"
64
- * added pp=normal-backtrace to clear the "sticky" state
65
- * change "pp=sample" to work with "caller" no need for stack trace gem
66
-
67
- 4-September-2012 - Sam
68
-
69
- * 1.15.pre
70
- * fixed annoying bug where client settings were not sticking
71
- * fixed long standing issue with Rack::ConditionalGet stopping MiniProfiler from working properly
72
-
73
- 5-September-2012 - Sam
74
-
75
- * 1.16
76
- * fixed long standing problem specs (issue with memory store)
77
- * fixed issue where profiler would be dumped when you got a 404 in production (and any time rails is bypassed)
78
- * implemented stacktrace properly
79
-
80
- 9-September-2012 - Sam
81
-
82
- * 1.17
83
- * pp=sample was bust unless stacktrace was installed
@@ -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>