| 1943 | |
| 1944 | #ifdef JEMALLOC_JET |
| 1945 | void |
| 1946 | prof_cnt_all(uint64_t *curobjs, uint64_t *curbytes, uint64_t *accumobjs, |
| 1947 | uint64_t *accumbytes) { |
| 1948 | tsd_t *tsd; |
| 1949 | prof_tdata_t *tdata; |
| 1950 | struct prof_tdata_merge_iter_arg_s prof_tdata_merge_iter_arg; |
| 1951 | struct prof_gctx_merge_iter_arg_s prof_gctx_merge_iter_arg; |
| 1952 | prof_gctx_tree_t gctxs; |
| 1953 | |
| 1954 | tsd = tsd_fetch(); |
| 1955 | tdata = prof_tdata_get(tsd, false); |
| 1956 | if (tdata == NULL) { |
| 1957 | if (curobjs != NULL) { |
| 1958 | *curobjs = 0; |
| 1959 | } |
| 1960 | if (curbytes != NULL) { |
| 1961 | *curbytes = 0; |
| 1962 | } |
| 1963 | if (accumobjs != NULL) { |
| 1964 | *accumobjs = 0; |
| 1965 | } |
| 1966 | if (accumbytes != NULL) { |
| 1967 | *accumbytes = 0; |
| 1968 | } |
| 1969 | return; |
| 1970 | } |
| 1971 | |
| 1972 | prof_dump_prep(tsd, tdata, &prof_tdata_merge_iter_arg, |
| 1973 | &prof_gctx_merge_iter_arg, &gctxs); |
| 1974 | prof_gctx_finish(tsd, &gctxs); |
| 1975 | |
| 1976 | if (curobjs != NULL) { |
| 1977 | *curobjs = prof_tdata_merge_iter_arg.cnt_all.curobjs; |
| 1978 | } |
| 1979 | if (curbytes != NULL) { |
| 1980 | *curbytes = prof_tdata_merge_iter_arg.cnt_all.curbytes; |
| 1981 | } |
| 1982 | if (accumobjs != NULL) { |
| 1983 | *accumobjs = prof_tdata_merge_iter_arg.cnt_all.accumobjs; |
| 1984 | } |
| 1985 | if (accumbytes != NULL) { |
| 1986 | *accumbytes = prof_tdata_merge_iter_arg.cnt_all.accumbytes; |
| 1987 | } |
| 1988 | } |
| 1989 | #endif |
| 1990 | |
| 1991 | #define DUMP_FILENAME_BUFSIZE (PATH_MAX + 1) |
no test coverage detected