Skip to content

Commit

Permalink
Merge pull request #1 from zakerinasab/vmt_counters_update_name_descr…
Browse files Browse the repository at this point in the history
…iption

Update VMT counter names
  • Loading branch information
zakerinasab committed Dec 5, 2019
2 parents bc426e7 + 50033a5 commit 7fae55f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/trace_processor/vulkan_memory_tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ namespace trace_processor {

VulkanMemoryTracker::VulkanMemoryTracker(TraceProcessorContext* context)
: context_(context),
vulkan_driver_memory_counter_str_("vulkan.mem.driver.scope."),
vulkan_device_memory_counter_str_("vulkan.mem.device.memory.type.") {
vulkan_driver_memory_counter_str_("Driver, scope = "),
vulkan_device_memory_counter_str_("Device, memory type = ") {
SetupSourceAndTypeInternedStrings();
}

Expand Down Expand Up @@ -95,7 +95,7 @@ StringId VulkanMemoryTracker::FindMemoryTypeCounterString(
it = memory_type_allocation_counter_string_map_.find(memory_type);
if (it == memory_type_allocation_counter_string_map_.end()) {
type_counter_str = vulkan_device_memory_counter_str_ +
std::to_string(memory_type) + ".allocation";
std::to_string(memory_type) + ", allocated";
res = context_->storage->InternString(base::StringView(
type_counter_str.c_str(), type_counter_str.length()));
memory_type_allocation_counter_string_map_.emplace(memory_type, res);
Expand All @@ -107,7 +107,7 @@ StringId VulkanMemoryTracker::FindMemoryTypeCounterString(
it = memory_type_bind_counter_string_map_.find(memory_type);
if (it == memory_type_bind_counter_string_map_.end()) {
type_counter_str = vulkan_device_memory_counter_str_ +
std::to_string(memory_type) + ".bind";
std::to_string(memory_type) + ", bound";
res = context_->storage->InternString(base::StringView(
type_counter_str.c_str(), type_counter_str.length()));
memory_type_bind_counter_string_map_.emplace(memory_type, res);
Expand Down

0 comments on commit 7fae55f

Please sign in to comment.