Module: Singed
- Extended by:
- Singed
- Included in:
- Singed
- Defined in:
- lib/singed/cli.rb,
lib/singed.rb,
lib/singed/report.rb,
lib/singed/railtie.rb,
lib/singed/flamegraph.rb,
lib/singed/controller_ext.rb,
lib/singed/rack_middleware.rb
Overview
NOTE: we defer requiring singed until we run. that lets Rails load it if its in the gemfile, so the railtie has had a chance to run
Defined Under Namespace
Modules: ControllerExt
Classes: CLI, Flamegraph, RackMiddleware, Railtie, Report
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.output_directory ⇒ Object
15
16
17
|
# File 'lib/singed.rb', line 15
def self.output_directory
@output_directory
end
|
Instance Method Details
#backtrace_cleaner ⇒ Object
33
34
35
|
# File 'lib/singed.rb', line 33
def backtrace_cleaner
@backtrace_cleaner
end
|
#backtrace_cleaner=(backtrace_cleaner) ⇒ Object
29
30
31
|
# File 'lib/singed.rb', line 29
def backtrace_cleaner=(backtrace_cleaner)
@backtrace_cleaner = backtrace_cleaner
end
|
#enabled=(enabled) ⇒ Object
19
20
21
|
# File 'lib/singed.rb', line 19
def enabled=(enabled)
@enabled = enabled
end
|
#enabled? ⇒ Boolean
23
24
25
26
27
|
# File 'lib/singed.rb', line 23
def enabled?
return @enabled if defined?(@enabled)
@enabled = true
end
|
#filter_line(line) ⇒ Object
43
44
45
46
47
|
# File 'lib/singed.rb', line 43
def filter_line(line)
return backtrace_cleaner.filter_line(line) if backtrace_cleaner
line
end
|
#output_directory=(directory) ⇒ Object
Where should flamegraphs be saved?
11
12
13
|
# File 'lib/singed.rb', line 11
def output_directory=(directory)
@output_directory = Pathname.new(directory)
end
|
#silence_line?(line) ⇒ Boolean
37
38
39
40
41
|
# File 'lib/singed.rb', line 37
def silence_line?(line)
return backtrace_cleaner.silence_line?(line) if backtrace_cleaner
false
end
|