Skip to content

Commit ce45f3f

Browse files
committed
Added profiling flags to person activity generation
1 parent 99b9896 commit ce45f3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/ldbc/snb/datagen/hadoop/HadoopPersonActivityGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ public void run( String inputFileName ) throws Exception {
143143
job.setPartitionerClass(HadoopBlockPartitioner.class);
144144

145145
/** PROFILING OPTIONS **/
146-
//job.setProfileEnabled(true);
147-
//job.setProfileParams("-agentlib:hprof=cpu=samples,heap=sites,depth=4,thread=y,format=b,file=%s");
148-
//job.setProfileTaskRange(true,"");
149-
//job.setProfileTaskRange(false,"0-"+(numThreads-1));
146+
job.setProfileEnabled(true);
147+
job.setProfileParams("-agentlib:hprof=cpu=samples,heap=sites,depth=4,thread=y,format=b,file=%s");
148+
job.setProfileTaskRange(true,"0-1");
149+
job.setProfileTaskRange(false,"0-1");
150150
/****/
151151

152152
FileInputFormat.setInputPaths(job, new Path(rankedFileName));

0 commit comments

Comments
 (0)