Made a couple of profiler features conditionally compiled to save memory.
  Empty section history are now shared in order to save more memory.