Lines Matching refs:width
163 std::vector<size_t> width(titles.size(), 0); in ShowText() local
169 adjust_width(width[i], titles[i].size()); in ShowText()
175 adjust_width(width[i++], s.thread->name.size()); in ShowText()
176 adjust_width(width[i++], std::to_string(s.thread->pid).size()); in ShowText()
177 adjust_width(width[i++], std::to_string(s.thread->tid).size()); in ShowText()
180 adjust_width(width[i++], std::to_string(s.cpu).size()); in ShowText()
182 adjust_width(width[i++], s.readable_count.size()); in ShowText()
183 adjust_width(width[i++], s.Name().size()); in ShowText()
184 adjust_width(width[i++], s.comment.size()); in ShowText()
190 fprintf(fp, "%*s", static_cast<int>(width[i]), titles[i].c_str()); in ShowText()
192 fprintf(fp, "%-*s", static_cast<int>(width[i]), titles[i].c_str()); in ShowText()
203 fprintf(fp, " %-*s", static_cast<int>(width[i++]), s.thread->name.c_str()); in ShowText()
204 fprintf(fp, " %-*d", static_cast<int>(width[i++]), s.thread->pid); in ShowText()
205 fprintf(fp, " %-*d", static_cast<int>(width[i++]), s.thread->tid); in ShowText()
208 fprintf(fp, " %-*d", static_cast<int>(width[i++]), s.cpu); in ShowText()
210 fprintf(fp, " %*s %-*s # %-*s (%.0f%%)%s\n", static_cast<int>(width[i]), in ShowText()
211 s.readable_count.c_str(), static_cast<int>(width[i + 1]), s.Name().c_str(), in ShowText()
212 static_cast<int>(width[i + 2]), s.comment.c_str(), 1.0 / s.scale * 100, in ShowText()