fix(library/vm/vm): initialize m_total_time field

This commit is contained in:
Gabriel Ebner 2016-11-07 14:59:01 -05:00 committed by Leonardo de Moura
parent db3ad3156b
commit e88b97d46d

View file

@ -2304,6 +2304,7 @@ vm_state::profiler::~profiler() {
auto vm_state::profiler::get_snapshots() -> snapshots {
stop();
snapshots r;
r.m_total_time = chrono::milliseconds(0);
std::unordered_map<name, chrono::milliseconds, name_hash> cum_times;
for (snapshot_core const & s : m_snapshots) {
snapshot new_s;