Skip to content

Commit

Permalink
Merge pull request #82 from DataDog/rgs/anchor-tsc
Browse files Browse the repository at this point in the history
anchor queue times
  • Loading branch information
richardstartin authored Mar 26, 2024
2 parents 642a8d0 + 83f89a8 commit 9a6d2c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ddprof-lib/src/main/cpp/javaApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,10 @@ Java_com_datadoghq_profiler_JavaProfiler_recordQueueEnd0(JNIEnv* env, jobject un
JniString scheduler_str(env, scheduler);
int task_offset = Profiler::instance()->lookupClass(task_str.c_str(), task_str.length());
int scheduler_offset = Profiler::instance()->lookupClass(scheduler_str.c_str(), scheduler_str.length());
u64 now = TSC::ticks();
QueueTimeEvent event;
event._start = startTime;
event._end = endTime;
event._start = now - endTime + startTime;
event._end = now;
event._task = task_offset;
event._scheduler = scheduler_offset;
event._origin = origin_tid;
Expand Down

0 comments on commit 9a6d2c2

Please sign in to comment.