import-trace: progress and summary report for FullTraceImporter
Change-Id: I13a4352f6addc972ce2e24768d4079780ed1f554
This commit is contained in:
@ -64,7 +64,14 @@ bool FullTraceImporter::add_trace_event(margin_info_t &begin, margin_info_t &end
|
|||||||
std::stringstream sql;
|
std::stringstream sql;
|
||||||
sql << "(" << m_variant_id << "," << end.dyninstr << "," << end.ip << ")";
|
sql << "(" << m_variant_id << "," << end.dyninstr << "," << end.ip << ")";
|
||||||
|
|
||||||
return db->insert_multiple("INSERT INTO fulltrace (variant_id, instr, instr_absolute) VALUES ", sql.str().c_str());
|
bool ret =
|
||||||
|
db->insert_multiple("INSERT INTO fulltrace (variant_id, instr, instr_absolute) VALUES ", sql.str().c_str());
|
||||||
|
m_row_count++;
|
||||||
|
if (m_row_count % 10000 == 0 && ret) {
|
||||||
|
LOG << "Inserted " << std::dec << m_row_count << " trace events into the database" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FullTraceImporter::trace_end_reached() {
|
bool FullTraceImporter::trace_end_reached() {
|
||||||
|
|||||||
Reference in New Issue
Block a user