File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ namespace Randomize {
139139 return *this ;
140140 }
141141
142+ // TODO: fix array1d/2d/graph randomizers returning pointer instead of array
142143 T *create () {
143144 T *D = new T[_N];
144145 for (int i = 0 ; i < _N; i++) {
Original file line number Diff line number Diff line change 11#include < string>
22#include < fstream>
3+ #include < cstdlib>
34#include < json.hpp>
45#include " Tracer.h"
56
@@ -9,6 +10,9 @@ using json = nlohmann::json;
910int Tracer::tracerCount = 0 ;
1011json Tracer::traces = json::array();
1112
13+ const long Tracer::maxTraces = stol(getenv(" MAX_TRACES" ));
14+ const long Tracer::maxTracers = stol(getenv(" MAX_TRACERS" ));
15+
1216string Tracer::addTracer (string className, string title) {
1317 string key = to_string (tracerCount++) + " -" + className + " -" + title;
1418 string method = " construct" ;
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ class Tracer {
1313 static int tracerCount;
1414 static json traces;
1515
16- static const int maxTraces = 1000000 ; // TODO: load from environment variables
17- static const int maxTracers = 100 ;
16+ static const long maxTraces;
17+ static const long maxTracers;
1818
1919 static string addTracer (string className, string title);
2020
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default {
2626 return : 'LogTracer' ,
2727 arguments : [ ] ,
2828 } , {
29- name : 'print' ,
29+ name : 'print' , // TODO: separate into println and print methods
3030 description : 'Print `message`.' ,
3131 return : 'LogTracer' ,
3232 arguments : [
You can’t perform that action at this time.
0 commit comments