1function [d nthreads] = stat 2%STAT report status of statement coverage and malloc debugging 3 4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 5% SPDX-License-Identifier: Apache-2.0 6 7global GraphBLAS_debug GraphBLAS_grbcov 8 9if (isempty (GraphBLAS_debug)) 10 GraphBLAS_debug = false ; 11end 12 13nthreads = nthreads_get ; 14 15if (nargout == 0) 16 fprintf ('malloc debug: %d nthreads %d\n', GraphBLAS_debug, nthreads) ; 17else 18 d = GraphBLAS_debug ; 19end 20 21if (~isempty (GraphBLAS_grbcov)) 22 covered = sum (GraphBLAS_grbcov > 0) ; 23 n = length (GraphBLAS_grbcov) ; 24 if (nargout == 0) 25 fprintf ('test coverage: %d of %d (%0.4f%%)\n', ... 26 covered, n, 100 * (covered / n)) ; 27 end 28end 29 30