Git Product home page Git Product logo

adb_viewer's Introduction

adb_viewer

Android CPU & CPUSET Viewer by using electorn, adbkit. For more information, see the Blog

adb_viewer is a realtime android resource viewer (CPU Usage, CPU Frequency, CPUSET Configuration, Running process by cpuset) using Node.js, electron and adbkit. It work at Quad Core Processor. (LG V10,V20,G5,G6, Google Pixel)

CPUSET Viewer function is only able to use Daydream ready Android phone(Google Pixel), or you can easily enable CPUSETs kernel feature.

Requirements

node modules

dependencies

  • adbkit
  • collections
  • bluebird
  • electron-pug

devDependenices

  • asar
  • electron
  • electron-installer-squirrel-windows
  • electron-packager

Getting started

git clone https://github.com/dgjung0220/adb_viewer.git
cd adb_viewer
npm start

adb command line

Show each core's CPU Usage & Frequency

cat /proc/stat
cat /sys/devices/system/cpu/cpuX/cpufreq/scaling_cur_freq

Show CPUSETs Setting Configuration

cat /dev/cpuset/cpus
cat /dev/cpuset/foreground/cpus
cat /dev/cpuset/background/cpus
cat /dev/cpuset/system-background/cpus
cat /dev/cpuset/top-app/cpus

Show running process by CPUSETs

cat /dev/cpuset/foreground/tasks
cat /dev/cpuset/background/tasks
cat /dev/cpuset/system-background/tasks
cat /dev/cpuset/top-app/tasks

You can find more information in my blog(in Korean) post

make execute file(.exe) & zipping

add below scripts code in package.json, it will start after starting program.

"scripts": {    
    "start": "electron .",
    "poststart" : "electron-packager . cpuViewer --asar --platform win32 --arch x64 --out dist/"
},

make installer file(setup.exe)

cd adb_viewer
node installer.js

You can find ./dist/installer folder extension in project file.

License

ISC License. Copyright © 2017, Donggoo Jung

adb_viewer's People

Contributors

dgjung0220 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.