Fix comment in thread.h

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>
Add sr_frame_cmp and sr_frame_cmp_distance

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>
Make thread distance type-agnostic

Distance between any pair of threads can now be computed using the
single function sr_distance. Related to #63.

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>
distance: normalize levenshtein distance

The result is normalized between 0.0 and 1.0, as is described in the
comment.

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>
Port tests to type-agnostic distance functions

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>
Type-agnostic distance matrices

- the code that creates distance matrices was modified to accept array
  of sr_thread pointers
- metrics.c was deleted and the distance matrix code was moved to
  distance.c (metrics.c contained different implementation of distance
  functions, probably left over after their rewrite in distance.c)
- tests adjusted
- python bindings adjusted to compile, the satyr.Distances constructor
  still only accepts GDB threads though

Related to #63 (does not close it, the python bindings still need more
work).

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>