]>
Commit | Line | Data |
---|---|---|
bd6521f0 A |
1 | // |
2 | // SaveTraceAction.hpp | |
3 | // kdprof | |
4 | // | |
5 | // Created by James McIlree on 5/2/13. | |
6 | // Copyright (c) 2013 Apple. All rights reserved. | |
7 | // | |
8 | ||
9 | #ifndef __kdprof__SaveTraceAction__ | |
10 | #define __kdprof__SaveTraceAction__ | |
11 | ||
12 | class SaveTraceAction : public Action { | |
13 | FileDescriptor _save_fd; | |
14 | ||
15 | public: | |
16 | SaveTraceAction(FileDescriptor&& fd) : | |
17 | _save_fd(std::move(fd)) | |
18 | { | |
19 | ASSERT(_save_fd.is_open(), "Sanity"); | |
20 | } | |
21 | ||
22 | virtual void execute(Globals& globals); | |
23 | }; | |
24 | ||
25 | #endif |