]> git.saurik.com Git - apple/system_cmds.git/blob - kdprof/SaveTraceAction.hpp
54bffb85290c36a0c689c2b66f1536e6c995c5ed
[apple/system_cmds.git] / kdprof / SaveTraceAction.hpp
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