Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | use new API, avoid using NameRepo directly | Arne Juul | 2018-10-05 | 2 | -6/+4 | |
| | ||||||
* | add API in Point class also | Arne Juul | 2018-10-05 | 2 | -0/+24 | |
| | ||||||
* | HashedPointMap is only needed PointMapCollection | Arne Juul | 2018-10-05 | 5 | -69/+61 | |
| | ||||||
* | rename PointMap | Arne Juul | 2018-10-05 | 12 | -34/+34 | |
| | | | | | * PointMap -> HashedPointMap * PointMap::BackingMap -> PointMap | |||||
* | use new APIs | Arne Juul | 2018-10-05 | 2 | -15/+8 | |
| | ||||||
* | add APIs using NameRepo instance | Arne Juul | 2018-10-05 | 6 | -4/+71 | |
| | ||||||
* | constify | Arne Juul | 2018-10-05 | 4 | -10/+10 | |
| | ||||||
* | rename MetricName -> MetricId | Arne Juul | 2018-10-05 | 12 | -26/+26 | |
| | ||||||
* | rename MetricIdentifier -> MetricPointId | Arne Juul | 2018-10-05 | 12 | -24/+24 | |
| | ||||||
* | allow re-assignment of handles | Arne Juul | 2018-10-05 | 1 | -1/+1 | |
| | ||||||
* | make constructor/destructor private | Arne Juul | 2018-10-04 | 1 | -1/+1 | |
| | ||||||
* | use NameRepo instance | Arne Juul | 2018-10-03 | 2 | -37/+39 | |
| | ||||||
* | ensure empty string is always id 0 | Arne Juul | 2018-10-03 | 2 | -1/+11 | |
| | ||||||
* | add NameRepo class | Arne Juul | 2018-10-03 | 3 | -0/+120 | |
| | ||||||
* | extend API to allow lvalues also | Arne Juul | 2018-10-01 | 3 | -11/+35 | |
| | ||||||
* | Order by anonymous rss | Henning Baldersheim | 2018-09-05 | 2 | -3/+3 | |
| | ||||||
* | Remove unused include | Henning Baldersheim | 2018-09-05 | 1 | -2/+0 | |
| | ||||||
* | If memory utilisation is not found to be stable, return the median sample. | Henning Baldersheim | 2018-09-05 | 3 | -8/+21 | |
| | ||||||
* | Add move assignment and move constructor to CloneablePtr and IdentifiablePtr. | Tor Egge | 2018-08-29 | 1 | -0/+9 | |
| | | | | | This allows for use of std::unique_ptr rhs value instead of temporary raw pointer. | |||||
* | Remove whitespace | Henning Baldersheim | 2018-08-12 | 4 | -8/+8 | |
| | ||||||
* | Pass stringref by value | Henning Baldersheim | 2018-08-11 | 10 | -23/+23 | |
| | ||||||
* | Pass stringref by value | Henning Baldersheim | 2018-08-10 | 8 | -22/+22 | |
| | ||||||
* | Merge pull request #6469 from ↵ | Tor Brede Vekterli | 2018-07-26 | 4 | -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-terminated | Tor Brede Vekterli | 2018-07-26 | 1 | -0/+1 | |
| | | ||||||
| * | Remove stringref::c_str() | Tor Brede Vekterli | 2018-07-25 | 3 | -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 final | Henning Baldersheim | 2018-07-26 | 1 | -1/+1 | |
|/ | ||||||
* | Properly test both INVALIDATE and UPDATE strategy. Fix bug with incorrect ↵ | Henning Baldersheim | 2018-07-19 | 3 | -41/+27 | |
| | | | | size calculations on updating existing elements. | |||||
* | Add control of cache update policy when an item changes value. | Henning Baldersheim | 2018-07-19 | 2 | -5/+6 | |
| | ||||||
* | Merge branch 'master' into arnej/use-log-abort | Arne Juul | 2018-06-20 | 1 | -1/+1 | |
|\ | ||||||
| * | Only call classFromId once | Henning Baldersheim | 2018-06-13 | 1 | -1/+1 | |
| | | ||||||
* | | use LOG_ABORT not just abort() | Arne Juul | 2018-06-12 | 1 | -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 appending | Henning Baldersheim | 2018-06-12 | 1 | -3/+2 | |
| | ||||||
* | clean up remnants of .mak files | Arne Juul | 2018-06-11 | 1 | -1/+0 | |
| | ||||||
* | Use fallthrough attributes. | Tor Egge | 2018-05-27 | 1 | -1/+1 | |
| | ||||||
* | update test | Arne Juul | 2018-05-14 | 1 | -1/+2 | |
| | ||||||
* | Ensure correct behavior when epsilon is 0 and use constant for magic number. | Geir Storli | 2018-05-09 | 2 | -7/+9 | |
| | ||||||
* | Ensure consistent memory stats snapshot by a process. | Geir Storli | 2018-05-08 | 3 | -35/+99 | |
| | ||||||
* | Revert "Revert "Balder/quick restart of slobrok"" | Henning Baldersheim | 2018-04-05 | 1 | -1/+1 | |
| | ||||||
* | Revert "Balder/quick restart of slobrok" | Henning Baldersheim | 2018-04-05 | 1 | -1/+1 | |
| | ||||||
* | Use a reconfigurable stateserver. | Henning Baldersheim | 2018-04-05 | 1 | -1/+1 | |
| | ||||||
* | Avoid exposing rarely used code for inlining. | Henning Baldersheim | 2018-01-27 | 2 | -2/+6 | |
| | ||||||
* | Must generate the hash before the object is invalid | Henning Baldersheim | 2017-12-28 | 1 | -1/+2 | |
| | ||||||
* | Use a faster and simpler iteration for speed and simplicity. | Henning Baldersheim | 2017-12-28 | 1 | -2/+2 | |
| | ||||||
* | add compulsory description for metrics | Arne Juul | 2017-12-07 | 5 | -10/+10 | |
| | ||||||
* | integrate new MockTick from havardpe | Arne Juul | 2017-12-05 | 6 | -112/+91 | |
| | ||||||
* | update metrics library after review | Arne Juul | 2017-12-05 | 24 | -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 MockTick | Arne Juul | 2017-12-04 | 6 | -11/+10 | |
| | ||||||
* | update metrics library after reviews | Arne Juul | 2017-12-04 | 32 | -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-up | Arne Juul | 2017-12-03 | 29 | -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 review | Arne Juul | 2017-12-03 | 49 | -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. |