Skip to content

Commit

Permalink
Merge "fix instruments imported on Mac" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Aug 31, 2024
2 parents 1fb0449 + 7a8a9be commit 8d0c476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildtools/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ config("no_format_warning") {
cflags = [ "-Wno-format" ]
}

static_library("expat") {
source_set("expat") {
sources = [
"expat/src/expat/lib/expat.h",
"expat/src/expat/lib/xmlparse.c",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <map>

#include <expat.h>
#include <stdint.h>

#include "perfetto/base/status.h"
#include "perfetto/ext/base/status_or.h"
Expand Down Expand Up @@ -317,7 +318,7 @@ class InstrumentsXmlTokenizer::Impl {
base::StatusOr<int64_t> trace_ts =
ToTraceTimestamp(current_row_.timestamp_);
if (!trace_ts.ok()) {
PERFETTO_DLOG("Skipping timestamp %ld, no clock snapshot yet",
PERFETTO_DLOG("Skipping timestamp %" PRId64 ", no clock snapshot yet",
current_row_.timestamp_);
} else {
context_->sorter->PushInstrumentsRow(*trace_ts,
Expand All @@ -330,7 +331,8 @@ class InstrumentsXmlTokenizer::Impl {
PERFETTO_DCHECK(current_os_log_metadata_uint64_ref_ != nullptr);
uint64_t clock_sync_timestamp = *current_os_log_metadata_uint64_ref_;
if (latest_clock_sync_timestamp_ > clock_sync_timestamp) {
PERFETTO_DLOG("Skipping timestamp %ld, non-monotonic sync deteced",
PERFETTO_DLOG("Skipping timestamp %" PRId64
", non-monotonic sync deteced",
current_row_.timestamp_);
} else {
latest_clock_sync_timestamp_ = clock_sync_timestamp;
Expand Down

0 comments on commit 8d0c476

Please sign in to comment.