Sha256: 0c6e938bdbf2e75c47f0401f819fc014f12c6ab86c006376af6bcf35d70e58aa

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

# Test and profiler

## Test

When we are developing program,
we want to execute tasks in single process and check errors.
For that purpose we use the option --test.
For example,

    drbqs-server server.rb --test exec

In order to execute only two tasks, we type

    drbqs-server server.rb --test exec,2

## Profiler

At a time we can use profiler.

    drbqs-server server.rb --test exec --profile

Then drbqs creates drbqs_prof.txt that has profile data.

To profile a program and show the result by kcachegrind,

    drbqs-server server.rb --test exec --profile --profile-printer calltree

and then

    kcachegrind drbqs_prof.txt

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
drbqs-0.1.1 docs/TestProfiler.md
drbqs-0.1.0 docs/TestProfiler.md