Various miscelaneous changes (#6496)

This commit is contained in:
Vitor K 2023-05-03 12:24:10 -03:00 committed by GitHub
parent 41f13456c0
commit 34de77d429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 44 additions and 81 deletions

View file

@ -4,9 +4,7 @@
#pragma once
#include <map>
#include <memory>
#include <unordered_map>
#include <QDockWidget>
#include "core/hle/kernel/ipc_debugger/recorder.h"

View file

@ -214,6 +214,7 @@ void MicroProfileDrawLine2D(u32 vertices_length, float* vertices, u32 hex_color)
// the allocation across calls.
static std::vector<QPointF> point_buf;
point_buf.reserve(vertices_length);
for (u32 i = 0; i < vertices_length; ++i) {
point_buf.emplace_back(vertices[i * 2 + 0], vertices[i * 2 + 1]);
}

View file

@ -77,8 +77,9 @@ std::size_t WaitTreeItem::Row() const {
}
std::vector<std::unique_ptr<WaitTreeThread>> WaitTreeItem::MakeThreadItemList() {
u32 num_cores = Core::GetNumCores();
const u32 num_cores = Core::GetNumCores();
std::vector<std::unique_ptr<WaitTreeThread>> item_list;
item_list.reserve(num_cores);
for (u32 i = 0; i < num_cores; ++i) {
const auto& threads =
Core::System::GetInstance().Kernel().GetThreadManager(i).GetThreadList();