summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
Commit message (Collapse)AuthorAgeFilesLines
* allow re-assignment of handlesArne Juul2018-10-051-1/+1
|
* make constructor/destructor privateArne Juul2018-10-041-1/+1
|
* use NameRepo instanceArne Juul2018-10-032-37/+39
|
* ensure empty string is always id 0Arne Juul2018-10-032-1/+11
|
* add NameRepo classArne Juul2018-10-033-0/+120
|
* extend API to allow lvalues alsoArne Juul2018-10-013-11/+35
|
* Order by anonymous rssHenning Baldersheim2018-09-052-3/+3
|
* Remove unused includeHenning Baldersheim2018-09-051-2/+0
|
* If memory utilisation is not found to be stable, return the median sample.Henning Baldersheim2018-09-053-8/+21
|
* Add move assignment and move constructor to CloneablePtr and IdentifiablePtr.Tor Egge2018-08-291-0/+9
| | | | | This allows for use of std::unique_ptr rhs value instead of temporary raw pointer.
* Remove whitespaceHenning Baldersheim2018-08-124-8/+8
|
* Pass stringref by valueHenning Baldersheim2018-08-1110-23/+23
|
* Pass stringref by valueHenning Baldersheim2018-08-108-22/+22
|
* Merge pull request #6469 from ↵Tor Brede Vekterli2018-07-264-6/+7
|\ | | | | | | | | vespa-engine/vekterli/remove-dangerous-stringref-c_str-function Remove dangerous stringref::c_str()
| * Don't string wrap refs that are guaranteed to be zero-terminatedTor Brede Vekterli2018-07-261-0/+1
| |
| * Remove stringref::c_str()Tor Brede Vekterli2018-07-253-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | The expected semantics of c_str() (a null-terminated string) cannot be satisfied with a string reference, so remove the function entirely to prevent people from using it in buggy ways. Replaces c_str() with data() in places where it is presumed safe, otherwise constructs temporary string instances. Certain callsites have been de-stringref'd in favor of regular strings, in particular where C APIs have been transitively called. The vast majority of these were called with string parameters anyway, so should not cause much extra allocation.
* | Add finalHenning Baldersheim2018-07-261-1/+1
|/
* Properly test both INVALIDATE and UPDATE strategy. Fix bug with incorrect ↵Henning Baldersheim2018-07-193-41/+27
| | | | size calculations on updating existing elements.
* Add control of cache update policy when an item changes value.Henning Baldersheim2018-07-192-5/+6
|
* Merge branch 'master' into arnej/use-log-abortArne Juul2018-06-201-1/+1
|\
| * Only call classFromId onceHenning Baldersheim2018-06-131-1/+1
| |
* | use LOG_ABORT not just abort()Arne Juul2018-06-121-1/+1
|/ | | | | | | | | | * abort() has the unfortunate effect that nothing is seen in the log, just an event (which is usually not displayed); so ops people don't see that the program is crashing at all. * LOG_ABORT("message") will log an error with the message (and the file and line) before calling abort(), so it's easy to see what happened. * add or move <vespa/log/log.h> include and LOG_SETUP lines before LOG_ABORT is used (or included).
* Use a simpler way of appendingHenning Baldersheim2018-06-121-3/+2
|
* clean up remnants of .mak filesArne Juul2018-06-111-1/+0
|
* Use fallthrough attributes.Tor Egge2018-05-271-1/+1
|
* update testArne Juul2018-05-141-1/+2
|
* Ensure correct behavior when epsilon is 0 and use constant for magic number.Geir Storli2018-05-092-7/+9
|
* Ensure consistent memory stats snapshot by a process.Geir Storli2018-05-083-35/+99
|
* Revert "Revert "Balder/quick restart of slobrok""Henning Baldersheim2018-04-051-1/+1
|
* Revert "Balder/quick restart of slobrok"Henning Baldersheim2018-04-051-1/+1
|
* Use a reconfigurable stateserver.Henning Baldersheim2018-04-051-1/+1
|
* Avoid exposing rarely used code for inlining.Henning Baldersheim2018-01-272-2/+6
|
* Must generate the hash before the object is invalidHenning Baldersheim2017-12-281-1/+2
|
* Use a faster and simpler iteration for speed and simplicity.Henning Baldersheim2017-12-281-2/+2
|
* add compulsory description for metricsArne Juul2017-12-075-10/+10
|
* integrate new MockTick from havardpeArne Juul2017-12-056-112/+91
|
* update metrics library after reviewArne Juul2017-12-0524-55/+182
| | | | | | | | | | * move ticker kill * use relaxed JSON in test * rewrite loops in MockTick * no need for atomics when protected by mutex * add alive() to Tick API * hook up total metrics * add some documentation comments
* move MockTickArne Juul2017-12-046-11/+10
|
* update metrics library after reviewsArne Juul2017-12-0432-341/+477
| | | | | | | | | | * use slimmer handle subclasses * new tick abstraction * gc unused time supplier * rename current bucket concept to current samples * rename TimeStamp type * add padding making old metrics visible * improve test, now with less debug printing.
* review follow-upArne Juul2017-12-0329-182/+272
| | | | | | | | | | | | | | | * bug fix PointMap::operator< and use "for" loop * construct aggregators from samples only * use generation counter instead of timestamps to ensure correct ordering * add "noexcept" to signal strong exception guarantees * handle out-of-order metric type checks * ensure ticker thread is stopped in destructor * change TickerThread::stop() to only do its work once, as calling stop() twice crashed for some strange reason * refactor CurrentSamples extraction * move time-handling to tick() * ensure we do not have concurrent tick()s running * simpler time handling
* update metrics library after reviewArne Juul2017-12-0349-559/+833
| | | | | | | | | | | | | | | | | | | | | | | * Fix PointMap comparison bug and style. * Rename ReAllocBunch to StableStore, and GC its unused lookup method. Rename method apply -> for_each * Rename CounterIncrement -> Counter::Increment and GaugeMeasurement -> Gauge::Measurement * Rename PointMapBacking -> PointMap::BackingMap * Make single-argument constructors explicit. * Do not use actual time in dummy. * Rename mergeWithMap -> mergeFromSamples, and do some refactoring of it. * Refactor opaque handle implementation into its own class * Copy strings into snapshot, do not refer to strings owned elsewhere. * Refactor _pointMaps code into new PointMapCollection class * Split aggregators into their own files, move Bucket into its own files, and rename files for CurrentSamples. * Make Counter and Gauge only hold the MetricName and supply an empty Point via default argument instead. * Split out StableStore test, and test for pointer equality. * Separate out ticker thread, and arrange for fast stop. * Use less swap. * Add totalSnapshot() facility.
* first take on new simple metrics library.Arne Juul2017-12-0346-27/+1910
| | | | | | This is still a Work In Progress, the most basic public APIs should be stable now but most of the implementation is still untested and undocumented.
* Use std::lock_guard instead of std::unique_lock.Tor Egge2017-11-131-1/+1
|
* Use std::mutex and std::condition_variable instead of FastOS_Cond.Tor Egge2017-10-272-8/+10
|
* Remove leftover code.Henning Baldersheim2017-10-131-1/+0
|
* You can only start threads that operates on this in the constructor if you ↵Henning Baldersheim2017-10-132-3/+3
| | | | are final.
* Earlier conclusion about issue with too ealy stop was incorrect. However ↵Henning Baldersheim2017-10-132-6/+9
| | | | adding sanity checks to catch incorrect usage.
* Avoid that we miss a stop that happens while we are STARTING.Henning Baldersheim2017-10-131-0/+2
|
* Wire in for live reconfiguration of DocumentStore.Henning Baldersheim2017-10-053-38/+22
|
* Remove or update outdated copyright noticesTor Brede Vekterli2017-09-201-2/+0
|