Class: Mondrian::OLAP::Connection::ProfilingHandler
- Inherits:
-
Object
- Object
- Mondrian::OLAP::Connection::ProfilingHandler
- Defined in:
- lib/mondrian/olap/connection.rb
Instance Attribute Summary collapse
-
#plan ⇒ Object
readonly
Returns the value of attribute plan.
-
#timing ⇒ Object
readonly
Returns the value of attribute timing.
Instance Method Summary collapse
Instance Attribute Details
#plan ⇒ Object (readonly)
Returns the value of attribute plan.
488 489 490 |
# File 'lib/mondrian/olap/connection.rb', line 488 def plan @plan end |
#timing ⇒ Object (readonly)
Returns the value of attribute timing.
489 490 491 |
# File 'lib/mondrian/olap/connection.rb', line 489 def timing @timing end |
Instance Method Details
#explain(plan, timing) ⇒ Object
492 493 494 495 496 497 498 499 |
# File 'lib/mondrian/olap/connection.rb', line 492 def explain(plan, timing) if @plan @plan += "\n" + plan unless plan =~ QUERY_BODY_PLAN_REGEXP else @plan = plan end @timing = timing end |