Added extra calls to TakeSnapshot

Added call to TakeSnapshot as soon as the ResourceUsage object is
created and another when it is stopped.
(So that the library will always return at least 2 points, which is the
minimum to make a line)