Skip to content

mtraneis/giraffe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giraffe

Copyright (C) 2019 The Open Library Foundation. This software is distributed under the terms of the Apache License, Version 2.0. See the file LICENSE for more information.

Overview

Giraffe is a tool for creating visualizations of Okapi logs such as call graphs.

Giraffe example

System requirements

  • Linux, macOS, possibly Windows
  • Go 1.10 or later
  • Graphviz

Giraffe has not been tested in Windows, but it may work normally or using the "Two Step" method below.

Installing Giraffe

First ensure that the GOPATH environment variable specifies a path that can serve as your Go workspace directory, the place where this software and other Go packages will be installed. For example, to set it to $HOME/go:

$ export GOPATH=$HOME/go

Then to download and compile the software (or to retrieve the latest updates):

$ go get -u github.com/folio-labs/giraffe/...

The compiled executable file giraffe should appear in $GOPATH/bin/.

Running Giraffe

To generate a call graph in PDF format from part of an Okapi log stored in sample.log:

$ giraffe call -i sample.log -o sample.pdf

Other output formats, PNG, JPEG and DOT, are supported via the -T flag, for example:

$ giraffe call -i sample.log -o sample.png -T png

Giraffe can highlight response times that meet a specified threshold, given in milliseconds. For example, to highlight response times of at least 250 ms:

$ giraffe call -i sample.log -o sample.pdf -rstime 250

For more information about command line flags:

$ giraffe help

Running Giraffe in Two Steps

If the instructions above do not work, for instance in Windows, try running Giraffe in two steps using dot:

giraffe call -i sample.log -o sample.dot -T dot
dot -o sample.pdf -T pdf sample.dot

About

Create call graphs from Okapi logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%