A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ccache-miss-rate.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2
3import re
4import subprocess
5
6ccache_misses_line = subprocess.check_output(["ccache", "--print-stats"]).decode()
7ccache_misses = int(re.findall("cache_miss(.*)", ccache_misses_line)[0])
8print(ccache_misses)