MCPcopy Create free account
hub / github.com/BirolLab/abyss / printProgress

Function printProgress

ParseAligns/ParseAligns.cpp:368–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static void
369printProgress(const ReadAlignMap& map)
370{
371 if (opt::verbose == 0)
372 return;
373
374 static size_t prevBuckets;
375 if (prevBuckets == 0)
376 prevBuckets = map.bucket_count();
377
378 size_t buckets = map.bucket_count();
379 if (stats.alignments % 1000000 == 0 || buckets != prevBuckets) {
380 prevBuckets = buckets;
381 size_t size = map.size();
382 cerr << "Read " << stats.alignments
383 << " alignments. "
384 "Hash load: "
385 << size << " / " << buckets << " = " << (float)size / buckets << " using "
386 << toSI(getMemoryUsage()) << "B." << endl;
387 }
388}
389
390static void
391handleAlignment(const ReadAlignMap::value_type& alignments, ReadAlignMap& out)

Callers 1

handleAlignmentFunction · 0.70

Calls 4

toSIFunction · 0.85
getMemoryUsageFunction · 0.85
bucket_countMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected