Giter Site home page Giter Site logo

wsl-perf's Introduction

wsl-perf

Welcome to the wsl-perf repository! This repository provides a Debian package (deb) that enables the use of the perf command on Windows Subsystem for Linux (WSL). The package is specifically designed for WSL 2 and is intended for performance analysis tasks in Linux environments.

Tested Environment

Please note that this package has been tested only on Ubuntu 23.10 on WSL 2. While it may work on other distributions or versions, its functionality is not guaranteed outside this environment.

Installation

To install the perf package, use the following steps:

  1. Open your WSL terminal.
  2. Set your WSL kernel version as a variable. This command extracts the major and minor version number from the kernel version:
    VERSION=$(uname -r | cut -d. -f1,2)
    
  3. Use wget to download the package:
    wget https://github.com/buty4649/wsl-perf/releases/download/v$VERSION/perf-$VERSION-microsoft-standard-WSL2.deb
    
  4. Install the package using:
    sudo dpkg -i perf-$VERSION-microsoft-standard-WSL2.deb
    
  5. Once installed, perf is ready to be used by simply typing perf in the terminal.

Usage

Here are some basic commands to get started with perf:

  • List all available events: perf list
  • Record performance data: perf record -e [event] -p [pid]
  • Report the recorded data: perf report

Refer to the perf documentation for more detailed instructions.

License

This project is licensed under the MIT License.

wsl-perf's People

Contributors

buty4649 avatar

Stargazers

Cao Hongyu avatar ashish avatar Hayden Barnes avatar

Watchers

 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.