Module: MongoProfiler
- Defined in:
- lib/mongo_profiler.rb,
lib/mongo_profiler/web.rb,
lib/mongo_profiler/util.rb,
lib/mongo_profiler/caller.rb,
lib/mongo_profiler/version.rb,
lib/mongo_profiler/web_helpers.rb,
lib/mongo_profiler/models/profile.rb,
lib/mongo_profiler/models/profile_group.rb
Defined Under Namespace
Modules: WebHelpers
Classes: Caller, Profile, ProfileGroup, Util, Web
Constant Summary
collapse
- VERSION =
'0.0.2'
Class Method Summary
collapse
Class Method Details
.current_group_name ⇒ Object
18
19
20
|
# File 'lib/mongo_profiler.rb', line 18
def current_group_name
Thread.current['mongo_profiler_group_name'] || 'Undefined group name'
end
|
.current_group_name=(group_name) ⇒ Object
14
15
16
|
# File 'lib/mongo_profiler.rb', line 14
def current_group_name=(group_name)
Thread.current['mongo_profiler_group_name'] = group_name
end
|