fix(library/vm/vm): initialize m_total_time field
This commit is contained in:
parent
db3ad3156b
commit
e88b97d46d
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue