Adding getSample functionality.

Returns profile node corresponding to the top frame the sample at
the given index.