Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: shell/src/GcCommand.cpp

Issue 9763002: Add command to initiate garbage collection (Closed)
Patch Set: Created March 11, 2013, 11:07 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « shell/src/GcCommand.h ('k') | shell/src/Main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "GcCommand.h"
2
3 GcCommand::GcCommand(AdblockPlus::JsEngine& jsEngine)
4 : Command("gc"), jsEngine(jsEngine)
5 {
6 }
7
8 void GcCommand::operator()(const std::string& arguments)
9 {
10 jsEngine.Gc();
11 }
12
13 std::string GcCommand::GetDescription() const
14 {
15 return "Initiates a garbage collection";
16 }
17
18 std::string GcCommand::GetUsage() const
19 {
20 return name;
21 }
OLDNEW
« no previous file with comments | « shell/src/GcCommand.h ('k') | shell/src/Main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld