| 1 |
greg |
2.6 |
/* RCSid $Id: pmapdiag.h,v 2.5 2015/08/18 18:45:55 greg Exp $ */
|
| 2 |
greg |
2.1 |
/*
|
| 3 |
|
|
==================================================================
|
| 4 |
|
|
Photon map diagnostic output and progress reports
|
| 5 |
|
|
|
| 6 |
|
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
|
| 7 |
|
|
(c) Fraunhofer Institute for Solar Energy Systems,
|
| 8 |
rschregle |
2.4 |
(c) Lucerne University of Applied Sciences and Arts,
|
| 9 |
|
|
supported by the Swiss National Science Foundation (SNSF, #147053)
|
| 10 |
greg |
2.1 |
==================================================================
|
| 11 |
|
|
|
| 12 |
|
|
*/
|
| 13 |
|
|
|
| 14 |
|
|
|
| 15 |
|
|
#ifndef PMAPDIAG_H
|
| 16 |
|
|
#define PMAPDIAG_H
|
| 17 |
|
|
|
| 18 |
|
|
#include "platform.h"
|
| 19 |
|
|
|
| 20 |
|
|
#ifdef NON_POSIX
|
| 21 |
|
|
#ifdef MINGW
|
| 22 |
|
|
#include <sys/time.h>
|
| 23 |
|
|
#endif
|
| 24 |
|
|
#else
|
| 25 |
|
|
#ifdef BSD
|
| 26 |
|
|
#include <sys/time.h>
|
| 27 |
|
|
#include <sys/resource.h>
|
| 28 |
|
|
#else
|
| 29 |
|
|
#include <sys/times.h>
|
| 30 |
|
|
#include <unistd.h>
|
| 31 |
|
|
#endif
|
| 32 |
|
|
#endif
|
| 33 |
|
|
|
| 34 |
|
|
#include <time.h>
|
| 35 |
greg |
2.2 |
#include <signal.h>
|
| 36 |
|
|
|
| 37 |
rschregle |
2.3 |
|
| 38 |
greg |
2.1 |
/* Time at start & last report */
|
| 39 |
|
|
extern time_t repStartTime, repLastTime;
|
| 40 |
|
|
/* Report progress & completion counters */
|
| 41 |
|
|
extern unsigned long repProgress, repComplete;
|
| 42 |
|
|
|
| 43 |
|
|
|
| 44 |
|
|
void pmapDistribReport ();
|
| 45 |
|
|
/* Report photon distribution progress */
|
| 46 |
|
|
|
| 47 |
|
|
void pmapPreCompReport ();
|
| 48 |
|
|
/* Report global photon precomputation progress */
|
| 49 |
|
|
|
| 50 |
|
|
void pmapBiasCompReport (char *stats);
|
| 51 |
|
|
/* Append full bias compensation statistics to stats; interface to
|
| 52 |
|
|
* rpict's report() */
|
| 53 |
|
|
|
| 54 |
|
|
#endif
|