Procrank is available in android (Source: https://android.googlesource.com/platform/system/extras/+/master/procrank/). I derived the source code from Android and & ported to Ubuntu Linux. Hope it helps.