]> git.saurik.com Git - apple/system_cmds.git/blob - kdprof/TraceFileAction.hpp
b91d369d256ee8d953ba0927b385c1573418bab1
[apple/system_cmds.git] / kdprof / TraceFileAction.hpp
1 //
2 // TraceFileAction.h
3 // kdprof
4 //
5 // Created by James McIlree on 4/15/13.
6 // Copyright (c) 2013 Apple. All rights reserved.
7 //
8
9 #ifndef __kdprof__TraceFileAction__
10 #define __kdprof__TraceFileAction__
11
12 class TraceFileAction : public Action {
13 protected:
14 std::string _path;
15
16 public:
17 TraceFileAction(const char* path) : _path(path) {
18 ASSERT(Path::is_file(_path, TRUE), "File must exist");
19 }
20
21 virtual void execute(Globals& globals);
22 };
23
24 #endif /* defined(__kdprof__TraceFileAction__) */