summaryrefslogtreecommitdiff
path: root/lib/diameter/src/base/diameter_stats.erl
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'maint-17' into maintAnders Svensson2015-08-131-8/+10
|\ | | | | | | | | | | | | The diffs are all about adapting to the OTP 18 time interface. The code was previously backwards compatible, falling back on the erlang:now/0 if erlang:monotonic_time/0 is unavailable, but this was seen to be a bad thing in commit 9c0f2f2c. Use of erlang:now/0 is now removed.
| * Merge branch 'anders/diameter/17/time/OTP-12926' into maint-17Erlang/OTP2015-08-131-3/+0
| |\ | | | | | | | | | | | | | | | | | | * anders/diameter/17/time/OTP-12926: Simplify time manipulation Remove use of monotonic time in pre-18 code Remove unnecessary redefinition of erlang:max/2
| | * Simplify time manipulationAnders Svensson2015-08-051-3/+0
| | | | | | | | | | | | | | | By doing away with more wrapping that the parent commit started to remove.
| * | Make ets diameter_stats a setAnders Svensson2015-08-071-7/+9
| |/ | | | | | | | | | | | | There's no need for it to be ordered, and the ordering has been seen to have an unexpectedly negative impact on performance in some cases. Order when retrieving statistics instead, so as not to change the presentation in diameter:service_info/2.
| * Set ets {write_concurrency, true} on diameter_statsAnders Svensson2015-08-041-1/+4
| | | | | | | | | | | | | | | | lcnt:inspect/1 recently showed this: lock id #tries collisions [%] time [us] ----- --- ------- --------------- ---------- db_tab diameter_stats 932920 92.9326 330332554
* | Change license text to APLv2Bruce Yinhe2015-06-181-9/+10
|/
* Use new time api in implementationAnders Svensson2015-02-201-2/+4
| | | | | | | | In particular, deal with the deprecation of erlang:now/0 in OTP 18. Be backwards compatible with older releases: the new api is only used when available. The test suites have not been modified.
* Remove upgrade-related codeAnders Svensson2014-01-271-4/+1
| | | | | No longer needed to update code in runtime since the emulator is restarted at a major release.
* Rework stats to avoid concurrent read and writeAnders Svensson2013-03-041-10/+69
| | | | | | | | | Counters read by diameter:service_info(SvcName, transport) can be selected at the same time as the diameter_stats server is folding them into another key, possibly resulting in inaccurate values. Have diameter_stats select from the server process to avoid this and add diameter_stats:sum/1 to sum values from all contributors on a given term.
* Remove trailing whitespaceAnders Svensson2013-02-081-2/+2
|
* Improve statistics test casesAnders Svensson2012-08-241-18/+14
|
* Statistics fixesAnders Svensson2012-08-241-150/+99
| | | | Statistics are deleted as a consequence of diameter:remove_transport/2.
* One makefile for src build instead of recursionAnders Svensson2011-10-171-0/+342
Simpler, no duplication of similar makefiles and makes for better dependencies. (Aka, recursive make considered harmful.)