This is an archive of the discontinued LLVM Phabricator instance.

Reland "[scudo] Add a Timer class to assist performance measurement"
ClosedPublic

Authored by Chia-hungDuan on Mar 23 2023, 5:05 PM.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Mar 23 2023, 5:05 PM
Chia-hungDuan requested review of this revision.Mar 23 2023, 5:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2023, 5:05 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Remove the virtual specifier on Timer's destructor. That caused the problem (https://lab.llvm.org/buildbot/#/builders/247/builds/2812)

Also fix some uses of uptr with u64 which aligns the type used by getMonoticTime()

Add header guard

cferris requested changes to this revision.Apr 3 2023, 1:42 PM

One small question.

compiler-rt/lib/scudo/standalone/timing.h
212

Should this be u64 too?

This revision now requires changes to proceed.Apr 3 2023, 1:42 PM
Chia-hungDuan marked an inline comment as done.

Address review comment and rebase

cferris accepted this revision.Apr 3 2023, 3:16 PM

LGTM

This revision is now accepted and ready to land.Apr 3 2023, 3:16 PM