Code Monkey home page Code Monkey logo

perf2cloudprofiler's Introduction

perf2cloudprofiler

Build Status

Uploads perf output to Google Cloud Profiler.

Installation

Linux 64-bit:

$ curl http://storage.googleapis.com/jbd-releases/perf2cloudprofiler > perf2cloudprofiler && chmod +x perf2cloudprofiler

Usage

$ perf record tree /usr # profile tree
$ perf report           # inspect the profile
Samples: 4K of event 'cpu-clock:uhH', Event count (approx.): 1236250000
Overhead  Command  Shared Object     Symbol
  12.52%  tree     tree              [.] 0x000000000000c964
  11.06%  tree     libc-2.27.so      [.] vfprintf
   4.63%  tree     libc-2.27.so      [.] write
   4.33%  tree     libc-2.27.so      [.] __lxstat64
   3.84%  tree     libc-2.27.so      [.] _IO_file_xsputn
   3.01%  tree     libc-2.27.so      [.] __fprintf_chk
   2.75%  tree     libc-2.27.so      [.] __strcoll_l
   2.43%  tree     libc-2.27.so      [.] c32rtomb
   1.92%  tree     libc-2.27.so      [.] malloc
   1.80%  tree     libc-2.27.so      [.] 0x000000000016af98
   1.72%  tree     libc-2.27.so      [.] 0x00000000000e00a8
   1.62%  tree     libc-2.27.so      [.] 0x000000000018e5a5
   1.54%  tree     libc-2.27.so      [.] cfree
   1.38%  tree     libc-2.27.so      [.] iswprint
   1.01%  tree     libc-2.27.so      [.] 0x000000000018e590
   0.87%  tree     libc-2.27.so      [.] __open_nocancel
   0.87%  tree     libc-2.27.so      [.] 0x0000000000169d90
   0.75%  tree     libc-2.27.so      [.] __close_nocancel
   0.75%  tree     libc-2.27.so      [.] __fxstat64
   0.75%  tree     libc-2.27.so      [.] readdir64
...

$ perf2cloudprofiler -target=tree-profile
https://console.cloud.google.com/profiler/tree-profile;type=CPU?project=PROJECT

Cloud Profiler Screenshot

Known issues

  • Users need to install perf_to_profile in their PATH.
  • perf to pprof converter can't always symbolize, see google/perf_data_converter#81.
  • Converter fails to convert some kernel profiles.
  • We should try to guess the profile type from the data.

perf2cloudprofiler's People

Contributors

rakyll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

isgasho

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.