Commit f8627553 by Aaron Leung

Keeping track of object destructions.

parent 3aa81584
......@@ -104,6 +104,7 @@ div {
b: hey or ho or false or hoo;
c: false and hey and ho;
d: true and false and (1/0);
e: (()()()()()()()()25()()()()()()()()()()()()()()()()()()()()()()());
/* e: 1 < 3 and 3 < 5;
f: (1 2 3) and (4 5 6);*/
......
......@@ -2,5 +2,5 @@ $x: bar;
div {
a: blah foo#{$x};
b: 1 + 123#{4 + 5};
b: 1 + 123#{a b @fuzzle};
}
\ No newline at end of file
......@@ -14,6 +14,7 @@ using std::endl;
namespace Sass {
size_t Node::allocations = 0;
size_t Node::destructed = 0;
Node Node::clone(vector<vector<Node>*>& registry) const
{
......
......@@ -113,6 +113,7 @@ namespace Sass {
const char* file_name;
static size_t allocations;
static size_t destructed;
void clear()
{
......@@ -252,5 +253,7 @@ namespace Sass {
has_children = true;
++allocations;
}
~Node() { ++destructed; }
};
}
\ No newline at end of file
......@@ -45,6 +45,7 @@ extern "C" {
cerr << "EMITTED" << endl;
cerr << "Allocations:\t" << Node::allocations << endl;
cerr << "Destructions:\t" << Node::destructed << endl;
cerr << "Registry size:\t" << doc.context.registry.size() << endl;
int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment