82 void Communication::sendParseInfo(uint64_t minBegTime, uint64_t maxEndTime,
int headerSize)
86 void Communication::sendParseOpenDB(
string pathToDB) {}
88 void Communication::sendStartGetData(SpaceTimeDataController* contr,
int processStart,
int processEnd,
89 Time timeStart,
Time timeEnd,
int verticalResolution,
int horizontalResolution)
92 ImageTraceAttributes* correspondingAttributes = contr->attributes;
94 correspondingAttributes->begProcess = processStart;
95 correspondingAttributes->endProcess = processEnd;
96 correspondingAttributes->numPixelsH = horizontalResolution;
97 correspondingAttributes->numPixelsV = verticalResolution;
98 correspondingAttributes->begTime = timeStart;
99 correspondingAttributes->endTime = timeEnd;
100 correspondingAttributes->lineNum = 0;
104 void Communication::sendEndGetData(DataSocketStream* stream, ProgressBar* prog, SpaceTimeDataController* controller)
109 controller->fillTraces();
110 for (
int i = 0; i < controller->tracesLength; i++)
113 ProcessTimeline* timeline = controller->traces[i];
114 stream->writeInt( timeline->line());
115 vector<TimeCPID> data = *timeline->data->listCPID;
116 stream->writeInt( data.size());
118 stream->writeLong( data[0].timestamp);
120 stream->writeLong( data[data.size() - 1].timestamp);
122 DataCompressionLayer comprStr;
124 vector<TimeCPID>::iterator it;
125 DEBUGCOUT(2) <<
"Sending process timeline with " << data.size() <<
" entries" << endl;
128 Time currentTime = data[0].timestamp;
129 for (it = data.begin(); it != data.end(); ++it)
131 comprStr.writeInt( (
int)(it->timestamp - currentTime));
132 comprStr.writeInt( it->cpid);
133 currentTime = it->timestamp;
136 int outputBufferLen = comprStr.getOutputLength();
137 char* outputBuffer = (
char*)comprStr.getOutputBuffer();
139 stream->writeInt(outputBufferLen);
141 stream->writeRawData(outputBuffer, outputBufferLen);
142 prog->incrementProgress();
147 void Communication::sendStartFilter(
int count,
bool excludeMatches)
151 void Communication::sendFilter(BinaryRepresentationOfFilter filt)
155 bool Communication::basicInit(
int argc,
char** argv)
159 void Communication::run()
163 void Communication::closeServer()
165 cout<<
"Server done, closing..."<<endl;