Update year information of license boilerplate
[platform/core/uifw/multi-assistant-service.git] / plugins / wakeup-manager / inc / heap_tracer.h
index fc7df29..626bac1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018  Samsung Electronics Co., Ltd
+ * Copyright 2018-2019 Samsung Electronics Co., Ltd
  *
  * Licensed under the Flora License, Version 1.1 (the License);
  * you may not use this file except in compliance with the License.
@@ -41,41 +41,41 @@ void *vm_mark_unmanaged(void *ptr, const char *fmt, ...);
 
 class HeapTracer {
 public:
-    HeapTracer();
-    virtual ~HeapTracer();
+       HeapTracer();
+       virtual ~HeapTracer();
 
-    bool Insert(void *ptr, std::string description, size_t size = 0);
-    bool Delete(void *ptr, std::string description);
-    std::string Find(void *ptr);
+       bool Insert(void *ptr, std::string description, size_t size = 0);
+       bool Delete(void *ptr, std::string description);
+       std::string Find(void *ptr);
 
-    void MarkUnmanaged(void *ptr, std::string description);
+       void MarkUnmanaged(void *ptr, std::string description);
 
-    bool Empty();
-    void Trace();
+       bool Empty();
+       void Trace();
 protected:
-    typedef struct {
-        void *ptr{nullptr};
-        std::string description;
-        int size{0};
-    } AllocationEntry;
+       typedef struct {
+               void *ptr{nullptr};
+               std::string description;
+               int size{0};
+       } AllocationEntry;
 
-    std::mutex mManagedTableMutex;
-    std::unordered_map<void*, AllocationEntry> mManagedTable;
+       std::mutex mManagedTableMutex;
+       std::unordered_map<void*, AllocationEntry> mManagedTable;
 
-    std::mutex mUnmanagedRecordsMutex;
-    std::list<AllocationEntry> mUnmanagedRecords;
-    size_t mUnmanagedRecordsSize{0};
+       std::mutex mUnmanagedRecordsMutex;
+       std::list<AllocationEntry> mUnmanagedRecords;
+       size_t mUnmanagedRecordsSize{0};
 
-    enum class EntryOperation {
-        INSERT,
-        DELETE,
-    };
-    typedef struct {
-        AllocationEntry entry;
-        EntryOperation operation;
-        struct timespec ts;
-    } EntryHistory;
-    std::list<EntryHistory> mEntryHistory;
+       enum class EntryOperation {
+               INSERT,
+               DELETE,
+       };
+       typedef struct {
+               AllocationEntry entry;
+               EntryOperation operation;
+               struct timespec ts;
+       } EntryHistory;
+       std::list<EntryHistory> mEntryHistory;
 };
 
 #endif /* __HEAP_TRACER_H__ */
\ No newline at end of file