#include "src/trace_processor/importers/proto/profile_packet_sequence_state.h"
#include <cstdint>
#include <memory>
#include <optional>
#include "src/trace_processor/importers/common/mapping_tracker.h"
#include "src/trace_processor/importers/common/stack_profile_tracker.h"
#include "src/trace_processor/importers/proto/packet_sequence_state_generation.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "src/trace_processor/types/trace_processor_context.h"
#include "test/gtest_and_gmock.h"
namespace perfetto {
namespace trace_processor {
namespace {
struct Packet { … };
constexpr Packet kFirstPacket{ … };
constexpr Packet kSecondPacket{ … };
constexpr auto kMappingExactOffset = …;
constexpr auto kMappingStartOffset = …;
constexpr auto kMappingStart = …;
constexpr auto kMappingEnd = …;
constexpr auto kMappingLoadBias = …;
constexpr auto kCallstackId = …;
static constexpr auto kFrameRelPc = …;
static constexpr char kBuildIDName[] = …;
static constexpr char kBuildIDHexName[] = …;
ElementsAre;
class HeapProfileTrackerDupTest : public ::testing::Test { … };
TEST_F(HeapProfileTrackerDupTest, Mapping) { … }
TEST_F(HeapProfileTrackerDupTest, Frame) { … }
TEST_F(HeapProfileTrackerDupTest, Callstack) { … }
std::optional<CallsiteId> FindCallstack(const TraceStorage& storage,
int64_t depth,
std::optional<CallsiteId> parent,
FrameId frame_id) { … }
TEST(HeapProfileTrackerTest, SourceMappingPath) { … }
TEST(HeapProfileTrackerTest, Functional) { … }
}
}
}