diff options
author | Franklin Wei <me@fwei.tk> | 2018-09-18 22:26:00 -0400 |
---|---|---|
committer | Franklin Wei <me@fwei.tk> | 2018-09-18 22:26:00 -0400 |
commit | 8728118e3911fccdf652c27c33edf517cbc39207 (patch) | |
tree | 2849e2b1a315ce1c7bf3bb3461d82406a74d38e0 /crypto.c | |
parent | 8a174f04e8b3e5517eccd672df680898e80e5c85 (diff) | |
download | csaa-8728118e3911fccdf652c27c33edf517cbc39207.zip csaa-8728118e3911fccdf652c27c33edf517cbc39207.tar.gz csaa-8728118e3911fccdf652c27c33edf517cbc39207.tar.bz2 csaa-8728118e3911fccdf652c27c33edf517cbc39207.tar.xz |
Change profiling breakdown
Coarser intervals across the board; also profiles F_verify() for both
file and info retrievals.
Diffstat (limited to 'crypto.c')
-rw-r--r-- | crypto.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -541,6 +541,15 @@ void prof_add(struct server_profile *prof, const char *label) } } +/* no bound checks here */ +void prof_concat(struct server_profile *out, const struct server_profile *in) +{ + memcpy(out->times + out->n_times, in->times, sizeof(clock_t) * (MAX_TIMES - out->n_times)); + memcpy(out->labels + out->n_times, in->labels, MAX_LABEL * (MAX_TIMES - out->n_times)); + + out->n_times += in->n_times; +} + /* The test scripts depend on the output of this function with -p set * (labels = false, labels_only = false). Do not change! */ void prof_dump(struct server_profile *profile, bool labels, bool labels_only) |