Page History
...
Code Block |
---|
#include <string> #include <iostream> #include <stdio.h> std::string exec(char* cmd) { FILE* pipe = popen(cmd, "r"); if (!pipe) return "ERROR"; char buffer[128]; std::string result = ""; while(!feof(pipe)) { if(fgets(buffer, 128, pipe) != NULL) result += buffer; } pclose(pipe); return result; } |
Valgrind - analysis of job memory consumption
Code Block |
---|
valgrind --tool=massif --time-unit=B psana -n 1 -m ImgAlgos.PixCoordsProducer exp=cxi86415:run=62 |
this command runs the job and produces the file like massif.out.23864
, which can be printed by command:
Code Block |
---|
ms_print massif.out.23864 |
Overview
Content Tools