|
|
|
@ -14,6 +14,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group |
|
|
|
#include "ngspice/ngspice.h" |
|
|
|
#include "ngspice/cpdefs.h" |
|
|
|
#include "ngspice/ftedefs.h" |
|
|
|
#include "ngspice/devdefs.h" |
|
|
|
|
|
|
|
#include "circuits.h" |
|
|
|
#include "resource.h" |
|
|
|
@ -325,7 +326,22 @@ printres(char *name) |
|
|
|
|
|
|
|
/* Now get all the spice resource stuff. */ |
|
|
|
if (ft_curckt && ft_curckt->ci_ckt) { |
|
|
|
|
|
|
|
if (name && eq(name, "devtimes")) { |
|
|
|
/* Per-device timings */ |
|
|
|
for(int i=0; i<=DEVmaxnum; i++) { |
|
|
|
if (ft_curckt->ci_ckt->CKTstat->devCounts[i]==0) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
fprintf(cp_out, "%s: t=%f n=%ld t/n=%e\n", |
|
|
|
(i==DEVmaxnum ? "\noverhead" : DEVices[i]->DEVpublic.name), |
|
|
|
ft_curckt->ci_ckt->CKTstat->devTimes[i], |
|
|
|
ft_curckt->ci_ckt->CKTstat->devCounts[i], |
|
|
|
ft_curckt->ci_ckt->CKTstat->devTimes[i]/(double)(ft_curckt->ci_ckt->CKTstat->devCounts[i]) |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
yy = TRUE; |
|
|
|
|
|
|
|
#ifdef CIDER |
|
|
|
/* begin cider integration */ |
|
|
|
if (!name || eq(name, "circuit") || eq(name, "task")) |
|
|
|
|