summaryrefslogtreecommitdiff
path: root/src/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.c')
-rw-r--r--src/history.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/history.c b/src/history.c
index 58ffa5c4..87cf28e6 100644
--- a/src/history.c
+++ b/src/history.c
@@ -108,6 +108,16 @@ iHistory *copy_History(const iHistory *d) {
108 return copy; 108 return copy;
109} 109}
110 110
111iMemInfo memoryUsage_History(const iHistory *d) {
112 iMemInfo mem = { 0, 0 };
113 iConstForEach(Array, i, &d->recent) {
114 const iRecentUrl *item = i.value;
115 mem.cacheSize += cacheSize_RecentUrl(item);
116 mem.memorySize += memorySize_RecentUrl(item);
117 }
118 return mem;
119}
120
111iString *debugInfo_History(const iHistory *d) { 121iString *debugInfo_History(const iHistory *d) {
112 iString *str = new_String(); 122 iString *str = new_String();
113 format_String(str, 123 format_String(str,