Sha256: fb853b0ff7a8ad08916a2fa94d04852c8f7171d66466068ae0a73d80f7f76ac1

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

Sets boolean to enable/disable profiling. Vedeu's default setting is
for profiling to be disabled. Using `profile!` or setting `profile` to
true will enable profiling.

Profile uses 'ruby-prof' to write a 'vedeu_profile' file to the /tmp
directory which contains a call trace of the running application.
Upon exit, this file can be examined to ascertain certain behaviours
of Vedeu. Note: On Windows systems, the log directory is determined by
the output from `Dir.tmpdir`.

Note:
Be aware that running an application with profiling enabled will
affect performance considerably.

    # Set:
    Vedeu.configure do
      profile!
      # ...
    end

    Vedeu.configure do
      profile false
      # ...
    end

    # Get:
    Vedeu.config.profile?
    Vedeu.config.profile

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.32 docs/configuration/profile.md