Tracing the characteristics of a flux qubit with a hysteretic dc-superconducting quantum interference device comparator