Module: AppProfiler
- Defined in:
- lib/app_profiler.rb,
lib/app_profiler/profile.rb,
lib/app_profiler/railtie.rb,
lib/app_profiler/version.rb,
lib/app_profiler/profiler.rb,
lib/app_profiler/middleware.rb,
lib/app_profiler/yarn/command.rb,
lib/app_profiler/request_parameters.rb,
lib/app_profiler/viewer/base_viewer.rb,
lib/app_profiler/storage/base_storage.rb,
lib/app_profiler/storage/file_storage.rb,
lib/app_profiler/yarn/with_speedscope.rb,
lib/app_profiler/middleware/base_action.rb,
lib/app_profiler/middleware/view_action.rb,
lib/app_profiler/middleware/upload_action.rb,
lib/app_profiler/viewer/speedscope_viewer.rb,
lib/app_profiler/storage/google_cloud_storage.rb,
lib/app_profiler/viewer/speedscope_remote_viewer.rb,
lib/app_profiler/viewer/speedscope_remote_viewer/middleware.rb,
lib/app_profiler/viewer/speedscope_remote_viewer/base_middleware.rb
Defined Under Namespace
Modules: Storage, Viewer, Yarn
Classes: ConfigurationError, Middleware, Profile, Railtie, RequestParameters
Constant Summary
collapse
- VERSION =
"0.0.9"
Class Method Summary
collapse
Class Method Details
70
71
72
|
# File 'lib/app_profiler.rb', line 70
def
@@profile_data_header ||= .dup << "-Data" end
|
58
59
60
61
62
|
# File 'lib/app_profiler.rb', line 58
def ()
@@profile_header = @@request_profile_header = nil @@profile_data_header = nil end
|
74
75
76
|
# File 'lib/app_profiler.rb', line 74
def profile_url_formatter=(block)
@@profile_url_formatter = block end
|
64
65
66
67
68
|
# File 'lib/app_profiler.rb', line 64
def
@@request_profile_header ||= begin .upcase.gsub("-", "_").prepend("HTTP_")
end
end
|
.run(*args, &block) ⇒ Object
45
46
47
|
# File 'lib/app_profiler.rb', line 45
def run(*args, &block)
Profiler.run(*args, &block)
end
|
.start(*args) ⇒ Object
49
50
51
|
# File 'lib/app_profiler.rb', line 49
def start(*args)
Profiler.start(*args)
end
|
.stop ⇒ Object
53
54
55
56
|
# File 'lib/app_profiler.rb', line 53
def stop
Profiler.stop
Profiler.results
end
|