This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import concurrent.futures | |
import threading | |
import subprocess | |
import random | |
# Runs each command on a single, dedicated CPU. | |
# Useful when `isolcpus` is enabled and need to run many single-threaded programs. | |
CPUS = list(range(12, 24)) + list(range(36, 48)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import psutil | |
import random | |
CPUSET = [int(x) for x in sys.argv[1].split(',')] | |
PID = int(sys.argv[2]) | |
threads = [] | |
for p in psutil.Process(PID).children(recursive=True): | |
if 'qemu-system' in p.name(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Python wrapper for Android uiautomator tool.""" | |
import sys | |
import os | |
import subprocess | |
import time | |
import itertools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
running=1 | |
finish() { | |
running=0 | |
} | |
trap finish SIGINT |