Git Product home page Git Product logo

go-torch-tool's Introduction

Go Torch Tool

Generate Torch Graph with Script

Run the following command to generate torch graph with profile.sh:

./profile.sh

Graph will be saved under output directory. Run ./profile -h for more information.

Generate Torch Graph with Docker

Run the following command to generate torch graph with Docker:

docker run uber/go-torch -u http://[address-of-host] -p > torch.svg

Use -u to set the listening address of pprof.

Expose Docker Profiling Endpoint

For extracting profiling data, it is required that the debug mode of Docker is turned on:

  • Modify /etc/docker/daemon.json, set "debug": true.
  • Run sudo kill -SIGHUP $(pidof dockerd) to send SIGHUP signal.
  • Run docker info | grep -i debug.*server to see if the modification is valid.

If the remote access endpoint of Docker is off, it is required to forward traffic to a local port:

socat -d -d TCP-LISTEN:8080,fork,bind=127.0.0.1 unix:/var/run/docker.sock

Dependencies

This tool is for offline environment. The following dependencies are required for the tool: go, go-torch, flamegraph.pl, perl.

go-torch-tool's People

Watchers

James Cloos avatar  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.