Skip to content

yuhangwang/verysleepy

 
 

Repository files navigation

Very Sleepy

This is Very Sleepy, a polling Windows CPU profiler with a wxWidgets-based GUI.

Download

You can download an installer on the project's website, or from the GitHub releases page.

History

Version 0.91 (under development):
  • Rename project back to Very Sleepy (this fork repository is now the official repository)
  • Use Dr. MinGW to resolve MinGW symbols by default
  • Update Wine DbgHelp for Windows
  • Contributed by Bernat Muñoz Garcia:
    • Use Scintilla for syntax highlighting
Version 0.90 (2014-12-23):
  • Redesign parts of the file format and internal database representation, to allow more exact late symbol loading, as well as a disassembler view in the future
  • Add an "Address" column to all function lists
    • For the call stack and callers view, the address specifies the address past the call instruction
  • Several fixes to the crash reporter
  • Use wxWidgets 2.9.5
  • Fix problems caused by dbghelp.dll hijacking
  • Fix handling of symbols containing whitespace characters
  • More user interface improvements
  • Contributed by Michael Vance:
    • Add CSV export for the callstack view
    • UI fixes and code cleanup
Version 0.83 (2013-08-22):
  • Rename fork to "Very Sleepy CS"
  • Numerous user interface performance, responsiveness and usability improvements
  • Allow specifying additional symbol search paths
  • Add Back and Forward menu items and hotkeys for function list navigation
  • Improve overall performance
  • Add late symbol loading by saving a minidump during profiling
  • Install 32-bit version alongside 64-bit version
  • Contributed by Richard Munn:
    • Added a time limit option to the interface
    • Added function highlighting and filtering
First fork release (2013-01-11):
  • GitHub repository created
  • Fix several issues with the /r command-line option
  • Various UI improvements
  • Don't completely abort due to one failed GetThreadContext call (fixes "Error: ProfilerExcep: GetThreadContext failed." errors by ignoring the occasional seemingly-harmless error condition)
Older changes

Changes before this repository's creation can be found on the project's website.

Building

Prerequisites:

  • Visual C++ 2010 (or compatible, e.g. 2012)
  • wxWidgets 2.9.5
    • Versions other than 2.9.5 might work, but may have compatibility issues.

After building wxWidgets (see below), you can build Sleepy using the project files (with the Visual Studio IDE or msbuild).

Building wxWidgets

Run one of the Microsoft batch files to set up the Visual Studio environment:

cd "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin"
vcvars32.bat           // for a regular 32-bit compile
vcvars64.bat           // for a regular 64-bit build
vcvarsx86_amd64.bat    // for a 64-bit cross-compile

Now, from the wxWidgets build\msw directory:

nmake -f makefile.vc BUILD=debug SHARED=0 RUNTIME_LIBS=static

NMAKE is part of Visual Studio, so vcvars should have added it to your path.

Options:

  • For a release build, use BUILD=release instead.
  • For 64-bit, add TARGET_CPU=AMD64.
  • You could also use the Visual Studio project/solution files to build wxWidgets, however (as of 2.9.5) these are Win32-only.

Finally, create an environment variable called WXWIN, and set it to the full path towards the wxWidgets directory (incl. trailing backslash). This variable in referenced in Sleepy's project files - Visual Studio must have in in its environment to be able to find wxWidgets.

Wine DbgHelp

To build the Wine version of DbgHelp (dbghelpw.dll and dbghelpw_wow64.dll), you need to have the Wine submodule (located in src/dbghelpw/wine). To do that, clone this repository with the --recursive flag, or, after cloning, run git submodule init and git submodule update. Once cloned, build the DbgHelp solution located in src/dbghelpw/wine/dlls/dbghelp/vs.

If you do not want to build Wine DbgHelp from source, you can place dbghelpw.dll and dbghelpw_wow64.dll from a recent binary release of Very Sleepy into the dbghelp_x86 and dbghelp_x64 directories appropriately.

Dr. MinGW DbgHelp

The dbghelpdr.dll file is part of the Dr. MinGW project. See that project's BUILD.md for an overview of the build instructions. For Very Sleepy, you will need both a 32-bit and a 64-bit version, which you can build with e.g. these 32-bit and 64-bit MinGW releases and this batch file.

If you do not want to build Dr. MinGW's DbgHelp from source, you can place dbghelpdr.dll from a recent binary release of Very Sleepy (or Dr. MinGW, where it will be called mgwhelp.dll) into the dbghelp_x86 and dbghelp_x64 directories appropriately.

Contributing

If you'd like to contribute a patch, please open a pull request. I'll try to review and merge it as soon as my time will allow.

Bug reports and feature requests are welcome as well - please file them as GitHub issues.

About

Very Sleepy, a polling CPU profiler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 68.5%
  • C 29.6%
  • Inno Setup 1.4%
  • Other 0.5%