#include "src/trace_processor/importers/proto/vulkan_memory_tracker.h"
#include <string>
#include "protos/perfetto/trace/interned_data/interned_data.pbzero.h"
#include "src/trace_processor/importers/common/process_tracker.h"
#include "src/trace_processor/types/trace_processor_context.h"
#include "perfetto/base/logging.h"
namespace perfetto {
namespace trace_processor {
VulkanMemoryTracker::VulkanMemoryTracker(TraceProcessorContext* context)
: … { … }
void VulkanMemoryTracker::SetupSourceAndTypeInternedStrings() { … }
StringId VulkanMemoryTracker::FindSourceString(
VulkanMemoryEvent::Source source) { … }
StringId VulkanMemoryTracker::FindOperationString(
VulkanMemoryEvent::Operation operation) { … }
StringId VulkanMemoryTracker::FindAllocationScopeString(
VulkanMemoryEvent::AllocationScope scope) { … }
StringId VulkanMemoryTracker::FindAllocationScopeCounterString(
VulkanMemoryEvent::AllocationScope scope) { … }
StringId VulkanMemoryTracker::FindMemoryTypeCounterString(
uint32_t memory_type,
DeviceCounterType counter_type) { … }
}
}