kiith-sa / tharsis.prof

Frame profiler library for game development in D.
Boost Software License 1.0
23 stars 2 forks source link

============ Tharsis.prof

.. image:: https://travis-ci.org/kiith-sa/tharsis.prof.svg?branch=master .. image:: https://raw.githubusercontent.com/kiith-sa/tharsis.prof/master/code.dlang.org-shield.png :target: http://code.dlang.org


Introduction

Tharsis.prof is an open source frame-based profiler <http://defenestrate.eu/2014/09/05/frame_based_game_profiling.html>_ library for the D programming language. A frame-based profiler keeps track of overhead separately for individual frames in a game. This is useful to track down issues with inconsistent overhead (such as lag that appears only once in a few seconds) that are hard to detect with conventional profilers.

Tharsis.prof is designed to be easy to use and lightweight. See the example below to get started.

Note that this is still a work in progress. The API is not stable and there might be compatibility breaking changes in future.


Getting started

Assuming you use dub <http://code.dlang.org/about>_, add this line::

"tharsis.prof": { "version" : "~>0.5.0" }

to the "dependencies" in your project's dub.json/package.json.

For detailed documentation with more specific code examples, see the documentation <http://ddocs.org/tharsis-prof/latest/index.html>_.


Features


Directory structure

=============== ======================================================================= Directory Contents =============== ======================================================================= ./ This README, auxiliary files. ./doc Documentation. ./source Source code. =============== =======================================================================


License

Tharsis.prof is released under the terms of the Boost Software License 1.0 <http://www.boost.org/LICENSE_1_0.txt>_. This license allows you to use the source code in your own projects, open source or proprietary, and to modify it to suit your needs. However, in source distributions, you have to preserve the license headers in the source code and the accompanying license file.

Full text of the license can be found in file LICENSE_1_0.txt and is also displayed here::

Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Credits

Tharsis.prof was created by Ferdinand Majerech aka Kiith-Sa kiithsacmp[AT]gmail.com .

Tharsis.prof was made with Vim and DMD on Linux Mint as a frame profiling library for the D programming language <http://www.dlang.org>. See more D libraries and projects at code.dlang.org <http://code.dlang.org>.