Skip to content

Commit

Permalink
expose first entry time in profiler data
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Oct 8, 2018
1 parent a4c4552 commit d773c16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/profiler/instrument.c
Expand Up @@ -333,6 +333,7 @@ typedef struct {
MVMString *promoted_bytes;
MVMString *gen2_roots;
MVMString *start_time;
MVMString *first_entry_time;
MVMString *osr;
MVMString *deopt_one;
MVMString *deopt_all;
Expand Down Expand Up @@ -477,6 +478,10 @@ static MVMObject * dump_call_graph_node(MVMThreadContext *tc, ProfDumpStrs *pds,
MVM_repr_bind_key_o(tc, node_hash, pds->inclusive_time,
box_i(tc, pcn->total_time / 1000));

/* Earliest entry time */
MVM_repr_bind_key_o(tc, node_hash, pds->first_entry_time,
box_i(tc, pcn->first_entry_time / 1000));

/* OSR and deopt counts. */
if (pcn->osr_count)
MVM_repr_bind_key_o(tc, node_hash, pds->osr,
Expand Down Expand Up @@ -631,6 +636,7 @@ void MVM_profile_dump_instrumented_data(MVMThreadContext *tc) {
pds.promoted_bytes = str(tc, "promoted_bytes");
pds.gen2_roots = str(tc, "gen2_roots");
pds.start_time = str(tc, "start_time");
pds.first_entry_time= str(tc, "first_entry_time");
pds.osr = str(tc, "osr");
pds.deopt_one = str(tc, "deopt_one");
pds.deopt_all = str(tc, "deopt_all");
Expand Down

0 comments on commit d773c16

Please sign in to comment.