Skip to content

Commit 1fcdd68

Browse files
tracy: Fix zone names overlapping
1 parent 6155878 commit 1fcdd68

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/pkgs.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ void Pkgs::initDescriptions() {
186186
fclose(f);
187187

188188
{
189-
ZoneNamedN(___tracy_pkg_pacman, "Initialize alpm and dbs", true);
189+
ZoneNamedN(___tracy_get_pkg_repo, "get package repository", true);
190+
const auto tracyArgs = "pkg: " + pkg.name;
191+
___tracy_get_pkg_repo.Text(tracyArgs.c_str(), tracyArgs.length());
190192
for (auto [repoId, db] : repos) {
191193
auto pkgFound = alpm_db_get_pkg(db, pkg.name.c_str());
192194
if (pkgFound) {
@@ -204,9 +206,9 @@ void Pkgs::initDescriptions() {
204206
{
205207
ZoneNamedN(___tracy_fill_deps, "Fill package required by", true);
206208
for (auto& pkg : descriptions) {
207-
ZoneNamedN(___tracy_get_descs_pkg, "Complete packages that depend on", true);
209+
ZoneNamedN(___tracy_get_req_by_pkg, "Complete packages that depend on", true);
208210
const auto tracyArgs = "Pkg: " + pkg.first;
209-
___tracy_get_descs_pkg.Text(tracyArgs.c_str(), tracyArgs.length());
211+
___tracy_get_req_by_pkg.Text(tracyArgs.c_str(), tracyArgs.length());
210212
for (auto& dep : pkg.second.depends) {
211213
if (descriptions.contains(dep))
212214
descriptions.at(dep).requiredBy.insert(pkg.first);

0 commit comments

Comments
 (0)