This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

What are these "profile" tests for?!


I've just noticed these three tests which just seems to create very
large containers:

23_containers/unordered_map/profile/hash_map.cc
23_containers/unordered_map/profile/unordered.cc
23_containers/vector/profile/vector.cc

Does anybody know what they're for? They say

// Insert more than default item

They all use the magic number 10000 which occurs in
<profile/impl/profiler_trace.h> so I assume they're trying to test
what happens when some limit is exceeded, but the tests don't actually
use profile mode! Should they be using -D_GLIBCXX_PROFILE? Or are they
only meant to test anything useful when doing "make check-profile"?

Maybe I should hurry up and add SystemTap probe points to the
containers so we can simply delete profile mode.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]