dist-clang icon indicating copy to clipboard operation
dist-clang copied to clipboard

Collect basic statistics and be able to print them

Open abyss7 opened this issue 10 years ago • 2 comments

The list of stats are:

  • [x] Количество зря потраченного времени на удалённой стороне
  • [ ] Максимальное время выполнения локальной компиляции - позволит оценить новый необходимый таймаут
  • [x] Количество попаданий в прямой кеш
  • [x] Количество попаданий в обычный кеш
  • [x] Количество успешных локальных тасков
  • [x] Количество успешных удалённых тасков

abyss7 avatar Feb 22 '15 12:02 abyss7

But how to view this stats?

mlopatkin avatar Nov 09 '15 09:11 mlopatkin

There is a sample python script inside "tools" folder - it's not shipped with packages. It's usage is:

python get_report.py <host> <port> <stat1> <stat2> ... <statN>

Host and port are specified in the daemon's config inside "Collector" section. Stat values are enumerated in "perf/stat.proto", e.g. DIRECT_CACHE_MISS, DIRECT_CACHE_HIT, etc.

abyss7 avatar Nov 09 '15 09:11 abyss7