GitXplorerGitXplorer
g

sawbuck

public
111 stars
39 forks
65 issues

Commits

List of commits on branch master.
Unverified
18385536eaac42d4b61c6401007cda33b2fade89

Create a README.md

rrobertshield committed 9 years ago
Unverified
9fa34e0a28fc3581c720c5543be56f3bd4bb7c2e

Remove Syzygy-related code from the Sawbuck repository.

cchhamilton committed 10 years ago
Unverified
45fb1bda9d127f7bf3b5c821d865fb660bbdb968

Modify ZebraBlockHeap to accept a heap to use for internal allocations.

cchhamilton committed 10 years ago
Unverified
80b1d126e5375237445e72faf68071def200ee34

Add GetAllocationSize support to ZebraBlockHeap.

cchhamilton committed 10 years ago
Unverified
168d2545c8375417314f74c5d717f52229632cfd

Added kUnboundedSize (~0) to specify unlimited capacity instead of using 0.

mmukel committed 10 years ago
Unverified
5bf926ec2976f2af0c76977666de509e47fee096

Add GetAllocationSize support to CtMallocHeap.

cchhamilton committed 10 years ago

README

The README file for this repository.

Sawbuck is a log viewer and controller for Windows Chrome logging, and for other applications or plugins that use the logging facility in Chrome base.

Logging in Chrome is integrated with Event Tracing for Windows (ETW), which allows ETW controllers like Sawbuck to control log verbosity at runtime. The Chrome logging integration also captures the call stack at the logging site, which can then be resolved and displayed by log viewers such as Sawbuck.

How to get this for my own code? If you're using the Chrome base library, then integrating your logging with ETW is as simple as allocating a new GUID by running guidgen.exe, then initializing the ETW log provider as so.

  #include "base/logging.h"
  #include "base/logging_win.h"
  #include <initguid.h>

  // {????????-????-????-????-????????}
  DEFINE_GUID(kMyLogProvider,
      0x????????,
      0x????,
      0x????,
      0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??);

  void InitLogging() {
    logging::LogEventProvider::Initialize(kMyLogProvider);
  }

You will then need to write your provider GUID and name to the registry for Sawbuck to know about it. Create a new key at

HKEY_LOCAL_MACHINE\Software\Google\Sawbuck\Providers with your provider GUID as the name of the key, with your provider textual name as the default string value of the key. Feel free to send a patch to the Sawbuck installer with your changes to the installer's registration to get your provider added to Sawbuck. If you're not using Chrome base, you'll need to duplicate what chrome/base/logging_win.cc does.

How to Contribute Start by downloading an installer, installing it and playing with Sawbuck. Browse and perhaps sign up to the sawbuck-dev discussion group. Get the sources and build them. Check out the issues list. Contribute a patch. Have fun!