quipper: Get attrs for each sample rather than assuming a sample_type

Instead of checking for a consistent sample_type, check for a consistent
position for the event id within a sample or non-sample event. This allows
events to have different sample types (again, so long as the event id is
in the same place).

TEST=added unit tests
BUG=none

Change-Id: I8f9da91c293a657ffa6036f7a2e5bd49dec54c77
Reviewed-on: https://chromium-review.googlesource.com/320612
Commit-Ready: David Sharp <dhsharp@chromium.org>
Tested-by: David Sharp <dhsharp@chromium.org>
Reviewed-by: Simon Que <sque@chromium.org>
8 files changed