Changeset 146932 in webkit for trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.h
- Timestamp:
- Mar 26, 2013, 2:43:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.h
r140718 r146932 1 1 /* 2 * Copyright (C) 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 46 46 JS_EXPORT_PRIVATE ~Database(); 47 47 48 int databaseID() const { return m_databaseID; } 49 48 50 Bytecodes* ensureBytecodesFor(CodeBlock*); 49 51 void notifyDestruction(CodeBlock*); … … 66 68 JS_EXPORT_PRIVATE bool save(const char* filename) const; 67 69 70 void registerToSaveAtExit(const char* filename); 71 68 72 private: 69 73 74 void addDatabaseToAtExit(); 75 void removeDatabaseFromAtExit(); 76 void performAtExitSave() const; 77 static Database* removeFirstAtExitDatabase(); 78 static void atExitCallback(); 79 80 int m_databaseID; 70 81 JSGlobalData& m_globalData; 71 82 SegmentedVector<Bytecodes> m_bytecodes; 72 83 HashMap<CodeBlock*, Bytecodes*> m_bytecodesMap; 73 84 Vector<RefPtr<Compilation> > m_compilations; 85 bool m_shouldSaveAtExit; 86 CString m_atExitSaveFilename; 87 Database* m_nextRegisteredDatabase; 74 88 }; 75 89
Note:
See TracChangeset
for help on using the changeset viewer.